1{ stdenv, buildPythonPackage
2, fetchFromGitHub
3, six
4, mock, pytest
5}:
6
7buildPythonPackage rec {
8 pname = "configobj";
9 version = "5.0.6";
10
11 # Pypi archives don't contain the tests
12 src = fetchFromGitHub {
13 owner = "DiffSK";
14 repo = pname;
15 rev = "v${version}";
16 sha256 = "0x97794nk3dfn0i3si9fv7y19jnpnarb34bkdwlz7ii7ag6xihhw";
17 };
18
19
20 propagatedBuildInputs = [ six ];
21
22 checkPhase = ''
23 pytest --deselect=tests/test_configobj.py::test_options_deprecation
24 '';
25
26 checkInputs = [ mock pytest ];
27
28 meta = with stdenv.lib; {
29 description = "Config file reading, writing and validation";
30 homepage = https://pypi.python.org/pypi/configobj;
31 license = licenses.bsd3;
32 maintainers = with maintainers; [ garbas ];
33 };
34}