nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 coloredlogs,
5 executor,
6 fetchFromGitHub,
7 humanfriendly,
8 naturalsort,
9 property-manager,
10 pytestCheckHook,
11 six,
12}:
13
14buildPythonPackage rec {
15 pname = "update-dotdee";
16 version = "6.0";
17 format = "setuptools";
18
19 src = fetchFromGitHub {
20 owner = "xolox";
21 repo = "python-update-dotdee";
22 rev = version;
23 hash = "sha256-2k7FdgWM0ESHQb2za87yhXGaR/rbMYLVcv10QexUH1A=";
24 };
25
26 propagatedBuildInputs = [
27 coloredlogs
28 executor
29 humanfriendly
30 naturalsort
31 property-manager
32 six
33 ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 postPatch = ''
38 substituteInPlace tox.ini \
39 --replace " --cov --showlocals --verbose" ""
40 '';
41
42 pythonImportsCheck = [ "update_dotdee" ];
43
44 disabledTests = [
45 # TypeError: %o format: an integer is required, not str
46 "test_executable"
47 ];
48
49 meta = {
50 description = "Generic modularized configuration file manager";
51 mainProgram = "update-dotdee";
52 homepage = "https://github.com/xolox/python-update-dotdee";
53 license = lib.licenses.mit;
54 maintainers = with lib.maintainers; [ eyjhb ];
55 };
56}