python3Packages.parsy: switch to pytestCheckHook
This commit is contained in:
parent
2dedc1eaa4
commit
43a1e275c4
1 changed files with 15 additions and 7 deletions
|
@ -1,21 +1,29 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder, pytest }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pythonOlder
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "parsy";
|
pname = "parsy";
|
||||||
version = "1.4.0";
|
version = "1.4.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "7c411373e520e97431f0b390db9d2cfc5089bc1d33f4f1584d2cdc9e6368f302";
|
sha256 = "7c411373e520e97431f0b390db9d2cfc5089bc1d33f4f1584d2cdc9e6368f302";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
pythonImportsCheck = [
|
||||||
py.test test/
|
"parsy"
|
||||||
'';
|
];
|
||||||
|
|
||||||
disabled = pythonOlder "3.4";
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/python-parsy/parsy";
|
homepage = "https://github.com/python-parsy/parsy";
|
||||||
|
|
Loading…
Reference in a new issue