Files
nixpkgs/pkgs/development/python-modules/nutils-poly/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

51 lines
1.1 KiB
Nix

{
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 ];
};
}