Merge pull request #331845 from TomaSajt/nutils

python312Packages.nutils: unbreak by adding missing deps; python312Packages.nutils-poly: init

authored by OTABI Tomoya and committed by GitHub c38e7e61 9f1faed2

+70 -9
+51
pkgs/development/python-modules/nutils-poly/default.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + buildPythonPackage, 5 + fetchFromGitHub, 6 + rustPlatform, 7 + libiconv, 8 + numpy, 9 + unittestCheckHook, 10 + pythonOlder, 11 + }: 12 + 13 + buildPythonPackage rec { 14 + pname = "nutils-poly"; 15 + version = "1.0.1"; 16 + pyproject = true; 17 + 18 + disabled = pythonOlder "3.8"; 19 + 20 + src = fetchFromGitHub { 21 + owner = "nutils"; 22 + repo = "poly-py"; 23 + rev = "refs/tags/v${version}"; 24 + hash = "sha256-dxFv4Az3uz6Du5dk5KZJ+unVbt3aZjxXliAQZhmBWDM="; 25 + }; 26 + 27 + cargoDeps = rustPlatform.fetchCargoTarball { 28 + name = "${pname}-${version}"; 29 + inherit src; 30 + hash = "sha256-+fnKvlSwM197rsyusFH7rs1W6livxel45UGbi1sB05k="; 31 + }; 32 + 33 + nativeBuildInputs = [ rustPlatform.cargoSetupHook ]; 34 + 35 + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; 36 + 37 + build-system = [ rustPlatform.maturinBuildHook ]; 38 + 39 + dependencies = [ numpy ]; 40 + 41 + nativeCheckInputs = [ unittestCheckHook ]; 42 + 43 + pythonImportsCheck = [ "nutils_poly" ]; 44 + 45 + meta = { 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 ]; 50 + }; 51 + }
+17 -9
pkgs/development/python-modules/nutils/default.nix
··· 2 2 lib, 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 + flit-core, 6 + appdirs, 7 + bottombar, 5 8 numpy, 9 + nutils-poly, 10 + psutil, 11 + stringly, 6 12 treelog, 7 - stringly, 8 - flit-core, 9 - bottombar, 10 13 pytestCheckHook, 11 14 pythonOlder, 12 15 }: ··· 14 17 buildPythonPackage rec { 15 18 pname = "nutils"; 16 19 version = "8.7"; 17 - format = "pyproject"; 20 + pyproject = true; 18 21 19 - disabled = pythonOlder "3.7"; 22 + disabled = pythonOlder "3.8"; 20 23 21 24 src = fetchFromGitHub { 22 25 owner = "evalf"; ··· 25 28 hash = "sha256-wxouS0FXrdIhm6nTVBuzkwHceJnZ7f7k8nMFxFsZchE="; 26 29 }; 27 30 28 - nativeBuildInputs = [ flit-core ]; 31 + build-system = [ flit-core ]; 29 32 30 - propagatedBuildInputs = [ 33 + dependencies = [ 34 + appdirs 35 + bottombar 31 36 numpy 32 - treelog 37 + nutils-poly 38 + psutil 33 39 stringly 34 - bottombar 40 + treelog 35 41 ]; 42 + 43 + pythonRelaxDeps = [ "psutil" ]; 36 44 37 45 nativeCheckInputs = [ pytestCheckHook ]; 38 46
+2
pkgs/top-level/python-packages.nix
··· 9247 9247 9248 9248 nutils = callPackage ../development/python-modules/nutils { }; 9249 9249 9250 + nutils-poly = callPackage ../development/python-modules/nutils-poly { }; 9251 + 9250 9252 nvchecker = callPackage ../development/python-modules/nvchecker { }; 9251 9253 9252 9254 nvdlib = callPackage ../development/python-modules/nvdlib { };