python312Packages.apricot-select: drop nose dependency (#336133)

This commit is contained in:
Fabian Affolter 2024-08-31 09:26:26 +02:00 committed by GitHub
commit 4156ce4a82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,10 +2,10 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
apricot-select,
numba,
numpy,
nose,
pytestCheckHook,
pythonOlder,
scikit-learn,
@ -29,9 +29,13 @@ buildPythonPackage rec {
hash = "sha256-v9BHFxmlbwXVipPze/nV35YijdFBuka3gAl85AlsffQ=";
};
postPatch = ''
sed -i '/"nose"/d' setup.py
'';
patches = [
# migrate to pytest, https://github.com/jmschrei/apricot/pull/43
(fetchpatch2 {
url = "https://github.com/jmschrei/apricot/commit/ffa5cce97292775c0d6890671a19cacd2294383f.patch?full_index=1";
hash = "sha256-9A49m4587kAPK/kzZBqMRPwuA40S3HinLXaslYUcWdM=";
})
];
build-system = [ setuptools ];
@ -44,10 +48,7 @@ buildPythonPackage rec {
tqdm
];
nativeCheckInputs = [
nose
pytestCheckHook
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "apricot" ];