python3Packages.glom: switch to pytestCheckHook
This commit is contained in:
parent
37076fc603
commit
09b3ac7aa5
1 changed files with 29 additions and 6 deletions
|
@ -4,24 +4,47 @@
|
||||||
, boltons
|
, boltons
|
||||||
, attrs
|
, attrs
|
||||||
, face
|
, face
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, pyyaml
|
, pyyaml
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "glom";
|
pname = "glom";
|
||||||
version = "20.11.0";
|
version = "20.11.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "54051072bccc9cdb3ebbd8af0559195137a61d308f04bff19678e4b61350eb12";
|
hash = "sha256-VAUQcrzMnNs+u9ivBVkZUTemHTCPBL/xlnjkthNQ6xI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ boltons attrs face ];
|
propagatedBuildInputs = [
|
||||||
|
boltons
|
||||||
|
attrs
|
||||||
|
face
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ pytest pyyaml ];
|
checkInputs = [
|
||||||
# test_cli.py checks the output of running "glom"
|
pytestCheckHook
|
||||||
checkPhase = "PATH=$out/bin:$PATH pytest glom/test";
|
pyyaml
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
# test_cli.py checks the output of running "glom"
|
||||||
|
export PATH=$out/bin:$PATH
|
||||||
|
'';
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Test is outdated (was made for PyYAML 3.x)
|
||||||
|
"test_main_yaml_target"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"glom"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/mahmoud/glom";
|
homepage = "https://github.com/mahmoud/glom";
|
||||||
|
|
Loading…
Reference in a new issue