2018-05-10 01:52:22 +01:00
|
|
|
{ stdenv, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, six
|
|
|
|
, mock, pytest
|
|
|
|
}:
|
2018-03-31 18:23:04 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "configobj";
|
|
|
|
version = "5.0.6";
|
|
|
|
|
2018-05-10 01:52:22 +01:00
|
|
|
# Pypi archives don't contain the tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DiffSK";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0x97794nk3dfn0i3si9fv7y19jnpnarb34bkdwlz7ii7ag6xihhw";
|
2018-03-31 18:23:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
2018-05-10 01:52:22 +01:00
|
|
|
checkPhase = ''
|
|
|
|
pytest --deselect=tests/test_configobj.py::test_options_deprecation
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ mock pytest ];
|
|
|
|
|
2018-03-31 18:23:04 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Config file reading, writing and validation";
|
|
|
|
homepage = https://pypi.python.org/pypi/configobj;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ garbas ];
|
|
|
|
};
|
|
|
|
}
|