summary refs log tree commit diff
path: root/pkgs/development/python-modules/configobj/default.nix
blob: 746c5f35f25682016ca08dfd326de86145906992 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib, buildPythonPackage
, fetchFromGitHub
, six
, mock, pytest
}:

buildPythonPackage rec {
  pname = "configobj";
  version = "5.0.6";

  # Pypi archives don't contain the tests
  src = fetchFromGitHub {
    owner = "DiffSK";
    repo = pname;
    rev = "v${version}";
    sha256 = "0x97794nk3dfn0i3si9fv7y19jnpnarb34bkdwlz7ii7ag6xihhw";
  };


  propagatedBuildInputs = [ six ];

  checkPhase = ''
    pytest --deselect=tests/test_configobj.py::test_options_deprecation
  '';

  checkInputs = [ mock pytest ];

  meta = with lib; {
    description = "Config file reading, writing and validation";
    homepage = "https://pypi.python.org/pypi/configobj";
    license = licenses.bsd3;
    maintainers = with maintainers; [ ];
  };
}