python312Packages.nutils-poly: init at 1.0.1

This commit is contained in:
TomaSajt 2024-08-02 22:07:02 +02:00
parent fcdc2b9363
commit de5c1ae422
No known key found for this signature in database
GPG Key ID: F011163C050122A1
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,51 @@
{
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";
rev = "refs/tags/v${version}";
hash = "sha256-dxFv4Az3uz6Du5dk5KZJ+unVbt3aZjxXliAQZhmBWDM=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
name = "${pname}-${version}";
inherit src;
hash = "sha256-+fnKvlSwM197rsyusFH7rs1W6livxel45UGbi1sB05k=";
};
nativeBuildInputs = [ rustPlatform.cargoSetupHook ];
buildInputs = lib.optionals stdenv.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 ];
};
}

View File

@ -9222,6 +9222,8 @@ self: super: with self; {
nutils = callPackage ../development/python-modules/nutils { };
nutils-poly = callPackage ../development/python-modules/nutils-poly { };
nvchecker = callPackage ../development/python-modules/nvchecker { };
nvdlib = callPackage ../development/python-modules/nvdlib { };