nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 59 lines 1.0 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 replaceVars, 5 python3Packages, 6 testers, 7 ansible-cmdb, 8}: 9let 10 inherit (python3Packages) 11 setuptools 12 mako 13 pyyaml 14 jsonxs 15 buildPythonApplication 16 ; 17 18 pname = "ansible-cmdb"; 19 version = "1.31"; 20in 21buildPythonApplication { 22 inherit pname version; 23 24 pyproject = true; 25 26 src = fetchFromGitHub { 27 owner = "fboender"; 28 repo = "ansible-cmdb"; 29 rev = version; 30 hash = "sha256-HOFLX8fiid+xJOVYNyVbz5FunrhteAUPlvS3ctclVHo="; 31 }; 32 33 patches = [ 34 (replaceVars ./setup.patch { 35 inherit version; 36 }) 37 ]; 38 39 build-system = [ setuptools ]; 40 41 dependencies = [ 42 mako 43 pyyaml 44 jsonxs 45 ]; 46 47 passthru.tests.version = testers.testVersion { 48 package = ansible-cmdb; 49 version = "v${version}"; 50 }; 51 52 meta = { 53 description = "Generate host overview from ansible fact gathering output"; 54 homepage = "https://github.com/fboender/ansible-cmdb"; 55 license = lib.licenses.gpl3Only; 56 maintainers = [ lib.maintainers.tie ]; 57 mainProgram = "ansible-cmdb"; 58 }; 59}