Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / configobj / default.nix
blob932e434d923d17b6a84e62570c370f5b044e314d
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , mock
5 , pytestCheckHook
6 , pythonOlder
7 , six
8 }:
10 buildPythonPackage rec {
11   pname = "configobj";
12   version = "5.0.8";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "DiffSK";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-t3Q0FEBibkAM5PAG4fjXwNH/71RqSSDj/Mn27ri0iDU=";
22   };
24   propagatedBuildInputs = [
25     six
26   ];
28   nativeCheckInputs = [
29     pytestCheckHook
30   ];
32   checkInputs = [
33     mock
34   ];
36   pythonImportsCheck = [
37     "configobj"
38   ];
40   meta = with lib; {
41     description = "Config file reading, writing and validation";
42     homepage = "https://github.com/DiffSK/configobj";
43     changelog = "https://github.com/DiffSK/configobj/blob/v${version}/CHANGES.rst";
44     license = licenses.bsd3;
45     maintainers = with maintainers; [ ];
46   };