13 buildPythonPackage rec {
14 pname = "nutils-poly";
18 disabled = pythonOlder "3.8";
20 src = fetchFromGitHub {
23 rev = "refs/tags/v${version}";
24 hash = "sha256-dxFv4Az3uz6Du5dk5KZJ+unVbt3aZjxXliAQZhmBWDM=";
27 cargoDeps = rustPlatform.fetchCargoTarball {
28 name = "${pname}-${version}";
30 hash = "sha256-+fnKvlSwM197rsyusFH7rs1W6livxel45UGbi1sB05k=";
33 nativeBuildInputs = [ rustPlatform.cargoSetupHook ];
35 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
37 build-system = [ rustPlatform.maturinBuildHook ];
39 dependencies = [ numpy ];
41 nativeCheckInputs = [ unittestCheckHook ];
43 pythonImportsCheck = [ "nutils_poly" ];
46 description = "Low-level functions for evaluating and manipulating polynomials";
47 homepage = "https://github.com/nutils/poly-py";
48 license = lib.licenses.mit;
49 maintainers = with lib.maintainers; [ tomasajt ];