nixpkgs/pkgs/development/python-modules/milc/default.nix
2021-04-02 16:05:07 +02:00

40 lines
755 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, appdirs
, argcomplete
, colorama
, nose2
, semver
}:
buildPythonPackage rec {
pname = "milc";
version = "1.3.0";
src = fetchFromGitHub {
owner = "clueboard";
repo = "milc";
rev = version;
sha256 = "sha256-koyOBz+pB/vkTHOR1p77ACO11/ULDIBzqsszUUpnE88=";
};
propagatedBuildInputs = [ appdirs argcomplete colorama ];
checkInputs = [ nose2 semver ];
checkPhase = ''
patchShebangs example hello
nose2
'';
pythonImportsCheck = [ "milc" ];
meta = with lib; {
description = "An Opinionated Batteries-Included Python 3 CLI Framework";
homepage = "https://milc.clueboard.co";
license = licenses.mit;
maintainers = with maintainers; [ bhipple ];
};
}