Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 39 lines 755 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, appdirs 5, argcomplete 6, colorama 7, nose2 8, semver 9}: 10 11buildPythonPackage rec { 12 pname = "milc"; 13 version = "1.3.0"; 14 15 src = fetchFromGitHub { 16 owner = "clueboard"; 17 repo = "milc"; 18 rev = version; 19 sha256 = "sha256-koyOBz+pB/vkTHOR1p77ACO11/ULDIBzqsszUUpnE88="; 20 }; 21 22 propagatedBuildInputs = [ appdirs argcomplete colorama ]; 23 24 checkInputs = [ nose2 semver ]; 25 26 checkPhase = '' 27 patchShebangs example hello 28 nose2 29 ''; 30 31 pythonImportsCheck = [ "milc" ]; 32 33 meta = with lib; { 34 description = "An Opinionated Batteries-Included Python 3 CLI Framework"; 35 homepage = "https://milc.clueboard.co"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ bhipple ]; 38 }; 39}