Merge pull request #40231 from teto/configobj_tests
[RDY] pythonPackages.configobj: enable tests
This commit is contained in:
commit
c361d5a386
@ -1,19 +1,30 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, six }:
|
{ stdenv, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, six
|
||||||
|
, mock, pytest
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "configobj";
|
pname = "configobj";
|
||||||
version = "5.0.6";
|
version = "5.0.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
# Pypi archives don't contain the tests
|
||||||
inherit pname version;
|
src = fetchFromGitHub {
|
||||||
sha256 = "00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2";
|
owner = "DiffSK";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0x97794nk3dfn0i3si9fv7y19jnpnarb34bkdwlz7ii7ag6xihhw";
|
||||||
};
|
};
|
||||||
|
|
||||||
# error: invalid command 'test'
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ six ];
|
propagatedBuildInputs = [ six ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
pytest --deselect=tests/test_configobj.py::test_options_deprecation
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [ mock pytest ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Config file reading, writing and validation";
|
description = "Config file reading, writing and validation";
|
||||||
homepage = https://pypi.python.org/pypi/configobj;
|
homepage = https://pypi.python.org/pypi/configobj;
|
||||||
|
Loading…
Reference in New Issue
Block a user