python310Packages.pysrim: remove pytest-runner

This commit is contained in:
Fabian Affolter 2023-06-09 18:22:19 +02:00
parent 4c52672699
commit 1b8ab59fc0

View File

@ -1,30 +1,43 @@
{ lib { lib
, fetchPypi
, buildPythonPackage , buildPythonPackage
, pytest-runner , fetchPypi
, numpy , numpy
, pythonOlder
, pyyaml , pyyaml
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pysrim"; pname = "pysrim";
version = "0.5.10"; version = "0.5.10";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "ada088f73f7e1a3bf085206e81e0f83ed89c1d0b23a789ecd0ba0a250724aee8"; hash = "sha256-raCI9z9+GjvwhSBugeD4PticHQsjp4ns0LoKJQckrug=";
}; };
buildInputs = [ pytest-runner ]; postPatch = ''
propagatedBuildInputs = [ numpy pyyaml ]; substituteInPlace setup.py \
--replace "'pytest-runner', " ""
'';
propagatedBuildInputs = [
numpy
pyyaml
];
# Tests require git lfs download of repository # Tests require git lfs download of repository
doCheck = false; doCheck = false;
meta = { # pythonImportsCheck does not work
# TypeError: load() missing 1 required positional argument: 'Loader'
meta = with lib; {
description = "Srim Automation of Tasks via Python"; description = "Srim Automation of Tasks via Python";
homepage = "https://gitlab.com/costrouc/pysrim"; homepage = "https://gitlab.com/costrouc/pysrim";
license = lib.licenses.mit; license = licenses.mit;
maintainers = with lib.maintainers; [ costrouc ]; maintainers = with maintainers; [ costrouc ];
}; };
} }