python310Packages.configobj: switch to pytestCheckHook
- add pythonImportsCheck - disable on obsolete Python releases
This commit is contained in:
parent
0031ccab55
commit
0dbb26a391
@ -1,29 +1,38 @@
|
||||
{ lib, buildPythonPackage
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, six
|
||||
, mock, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "configobj";
|
||||
version = "5.0.6";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
# Pypi archives don't contain the tests
|
||||
src = fetchFromGitHub {
|
||||
owner = "DiffSK";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0x97794nk3dfn0i3si9fv7y19jnpnarb34bkdwlz7ii7ag6xihhw";
|
||||
hash = "sha256-HMLYzVMnxvMpb3ORsbKy18oU/NkuRT0isK6NaUk6J3U=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
checkInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest --deselect=tests/test_configobj.py::test_options_deprecation
|
||||
'';
|
||||
|
||||
checkInputs = [ mock pytest ];
|
||||
pythonImportsCheck = [
|
||||
"configobj"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Config file reading, writing and validation";
|
||||
|
Loading…
Reference in New Issue
Block a user