python312Packages.pysrim: modernize

This commit is contained in:
Peder Bergebakken Sundt 2024-08-24 18:50:24 +02:00
parent e61286763b
commit 0645f76d9b

View File

@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchPypi,
setuptools,
numpy,
pythonOlder,
pyyaml,
@ -10,7 +11,7 @@
buildPythonPackage rec {
pname = "pysrim";
version = "0.5.10";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
@ -21,10 +22,12 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner', " ""
--replace-fail "'pytest-runner', " ""
'';
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
numpy
pyyaml
];