diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-03-09 17:51:26 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-03-09 17:51:26 +0100 |
commit | c98a8d85e298029741a0cb6aa88b955c4f7dfb50 (patch) | |
tree | 48dc2e2946f569b30b40df6252570bc8b5c80534 | |
parent | b9420fd0d26a9b2079008af34b767cf469412bc1 (diff) | |
download | nixpkgs-c98a8d85e298029741a0cb6aa88b955c4f7dfb50.tar nixpkgs-c98a8d85e298029741a0cb6aa88b955c4f7dfb50.tar.gz nixpkgs-c98a8d85e298029741a0cb6aa88b955c4f7dfb50.tar.bz2 nixpkgs-c98a8d85e298029741a0cb6aa88b955c4f7dfb50.tar.lz nixpkgs-c98a8d85e298029741a0cb6aa88b955c4f7dfb50.tar.xz nixpkgs-c98a8d85e298029741a0cb6aa88b955c4f7dfb50.tar.zst nixpkgs-c98a8d85e298029741a0cb6aa88b955c4f7dfb50.zip |
python310Packages.plum-py: Fix build and refactor
- Follow the one argument per line approach to formatting. - Drop broken version specifier in python_requires - Use pytestCheckHook
-rw-r--r-- | pkgs/development/python-modules/plum-py/default.nix | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/plum-py/default.nix b/pkgs/development/python-modules/plum-py/default.nix index 701a36a3685..d6020cabc99 100644 --- a/pkgs/development/python-modules/plum-py/default.nix +++ b/pkgs/development/python-modules/plum-py/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitLab, isPy3k, pytest, baseline }: +{ lib +, buildPythonPackage +, fetchFromGitLab +, isPy3k +, pytestCheckHook +, baseline +}: buildPythonPackage rec { pname = "plum-py"; @@ -12,10 +18,21 @@ buildPythonPackage rec { hash = "sha256-jCZUNT1HpSr0khHsjnxEzN2LCzcDV6W27PjVkwFJHUg="; }; + postPatch = '' + # Drop broken version specifier + sed -i "/python_requires =/d" setup.cfg + ''; + pythonImportsCheck = [ "plum" ]; - nativeCheckInputs = [ pytest baseline ]; - checkPhase = "pytest tests"; + nativeCheckInputs = [ + baseline + pytestCheckHook + ]; + + pytestFlagsArray = [ + "tests" + ]; meta = with lib; { description = "Classes and utilities for packing/unpacking bytes"; |