Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 50 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ lib, stdenv, buildPythonPackage, fetchFromGitHub, rustPlatform, libiconv, numpy, unittestCheckHook, pythonOlder,}:
buildPythonPackage rec { pname = "nutils-poly"; version = "1.0.1"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "nutils"; repo = "poly-py"; tag = "v${version}"; hash = "sha256-dxFv4Az3uz6Du5dk5KZJ+unVbt3aZjxXliAQZhmBWDM="; };
cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; hash = "sha256-3UBQJfMPVo37V7mJnN9loF1+vKh3JxFJWgynwsOnAg4="; };
nativeBuildInputs = [ rustPlatform.cargoSetupHook ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
build-system = [ rustPlatform.maturinBuildHook ];
dependencies = [ numpy ];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "nutils_poly" ];
meta = { description = "Low-level functions for evaluating and manipulating polynomials"; homepage = "https://github.com/nutils/poly-py"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ tomasajt ]; };}