nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 mock,
6 pytestCheckHook,
7 six,
8}:
9
10buildPythonPackage rec {
11 pname = "configobj";
12 version = "5.0.9";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "DiffSK";
17 repo = "configobj";
18 tag = "v${version}";
19 hash = "sha256-duPCGBaHCXp4A6ZHLnyL1SZtR7K4FJ4hs5wCE1V9WB4=";
20 };
21
22 propagatedBuildInputs = [ six ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 checkInputs = [ mock ];
27
28 pythonImportsCheck = [ "configobj" ];
29
30 meta = {
31 description = "Config file reading, writing and validation";
32 homepage = "https://github.com/DiffSK/configobj";
33 changelog = "https://github.com/DiffSK/configobj/blob/v${version}/CHANGES.rst";
34 license = lib.licenses.bsd3;
35 maintainers = [ ];
36 };
37}