Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 59 lines 1.2 kB view raw
1{ lib 2, git 3, gnupg1 4, python3Packages 5, fetchPypi 6}: 7 8with python3Packages; buildPythonApplication rec { 9 pname = "reno"; 10 version = "3.1.0"; 11 12 # Must be built from python sdist because of versioning quirks 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "2510e3aae4874674187f88f22f854e6b0ea1881b77039808a68ac1a5e8ee69b6"; 16 }; 17 18 propagatedBuildInputs = [ 19 dulwich 20 pbr 21 pyyaml 22 setuptools # required for finding pkg_resources at runtime 23 ]; 24 25 nativeCheckInputs = [ 26 # Python packages 27 pytestCheckHook 28 docutils 29 fixtures 30 sphinx 31 testtools 32 testscenarios 33 34 # Required programs to run all tests 35 git 36 gnupg1 37 ]; 38 39 # remove b/c doesn't list all dependencies, and requires a few packages not in nixpkgs 40 postPatch = '' 41 rm test-requirements.txt 42 ''; 43 44 disabledTests = [ 45 "test_build_cache_db" # expects to be run from a git repository 46 ]; 47 48 # verify executable 49 postCheck = '' 50 $out/bin/reno -h 51 ''; 52 53 meta = with lib; { 54 description = "Release Notes Manager"; 55 homepage = "https://docs.openstack.org/reno/latest"; 56 license = licenses.asl20; 57 maintainers = with maintainers; [ drewrisinger guillaumekoenig ]; 58 }; 59}