Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch, 6 setuptools, 7 urwid, 8}: 9 10buildPythonPackage rec { 11 pname = "urwidtrees"; 12 version = "1.0.3"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "pazz"; 17 repo = "urwidtrees"; 18 rev = "refs/tags/${version}"; 19 hash = "sha256-yGSjwagCd5TiwEFtF6ZhDuVqj4PTa5pVXhs8ebr2O/g="; 20 }; 21 22 patches = [ 23 (fetchpatch { 24 url = "https://github.com/pazz/urwidtrees/commit/ed39dbc4fc67b0e0249bf108116a88cd18543aa9.patch"; 25 hash = "sha256-fA+30d2uVaoNCg4rtoWLNPvrZtq41Co4vcmM80hkURs="; 26 }) 27 ]; 28 29 nativeBuildInputs = [ setuptools ]; 30 31 propagatedBuildInputs = [ urwid ]; 32 33 # Module has no tests 34 doCheck = false; 35 36 pythonImportsCheck = [ "urwidtrees" ]; 37 38 meta = with lib; { 39 description = "Tree widgets for urwid"; 40 homepage = "https://github.com/pazz/urwidtrees"; 41 changelog = "https://github.com/pazz/urwidtrees/releases/tag/${version}"; 42 license = licenses.gpl3Plus; 43 maintainers = [ ]; 44 }; 45}