mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
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
This commit is contained in:
parent
b9420fd0d2
commit
c98a8d85e2
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user