From 1b8ab59fc0625c8bb6aeac0255925ccba15d51a3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 9 Jun 2023 18:22:19 +0200 Subject: [PATCH] python310Packages.pysrim: remove pytest-runner --- .../python-modules/pysrim/default.nix | 29 ++++++++++++++----- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pysrim/default.nix b/pkgs/development/python-modules/pysrim/default.nix index 4f295dfc7c27..4c3b66698adb 100644 --- a/pkgs/development/python-modules/pysrim/default.nix +++ b/pkgs/development/python-modules/pysrim/default.nix @@ -1,30 +1,43 @@ { lib -, fetchPypi , buildPythonPackage -, pytest-runner +, fetchPypi , numpy +, pythonOlder , pyyaml }: buildPythonPackage rec { pname = "pysrim"; version = "0.5.10"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "ada088f73f7e1a3bf085206e81e0f83ed89c1d0b23a789ecd0ba0a250724aee8"; + hash = "sha256-raCI9z9+GjvwhSBugeD4PticHQsjp4ns0LoKJQckrug="; }; - buildInputs = [ pytest-runner ]; - propagatedBuildInputs = [ numpy pyyaml ]; + postPatch = '' + substituteInPlace setup.py \ + --replace "'pytest-runner', " "" + ''; + + propagatedBuildInputs = [ + numpy + pyyaml + ]; # Tests require git lfs download of repository 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"; homepage = "https://gitlab.com/costrouc/pysrim"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ costrouc ]; + license = licenses.mit; + maintainers = with maintainers; [ costrouc ]; }; }