python3Packages.ducc0: switch to pyproject and refactor
This commit is contained in:
parent
838182b2a6
commit
22e2e4f9eb
@ -1,9 +1,19 @@
|
||||
{ stdenv, lib, buildPythonPackage, fetchFromGitLab, pythonOlder, pytestCheckHook, pybind11, numpy }:
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitLab,
|
||||
numpy,
|
||||
pybind11,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ducc0";
|
||||
version = "0.34.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
@ -11,14 +21,17 @@ buildPythonPackage rec {
|
||||
domain = "gitlab.mpcdf.mpg.de";
|
||||
owner = "mtr";
|
||||
repo = "ducc";
|
||||
rev = "ducc0_${lib.replaceStrings ["."] ["_"] version}";
|
||||
rev = "ducc0_${lib.replaceStrings [ "." ] [ "_" ] version}";
|
||||
hash = "sha256-lxNqB3Lt+n4vIH7cVW4DAwhjuPn49y+/3RLKVO8IuJM=";
|
||||
};
|
||||
|
||||
buildInputs = [ pybind11 ];
|
||||
propagatedBuildInputs = [ numpy ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
setuptools
|
||||
];
|
||||
pytestFlagsArray = [ "python/test" ];
|
||||
pythonImportsCheck = [ "ducc0" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user