nixpkgs/pkgs/development/python-modules/milc/default.nix

40 lines
755 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, appdirs
, argcomplete
, colorama
2021-04-02 13:57:21 +00:00
, nose2
, semver
}:
buildPythonPackage rec {
pname = "milc";
2021-04-02 13:57:21 +00:00
version = "1.3.0";
src = fetchFromGitHub {
owner = "clueboard";
repo = "milc";
rev = version;
2021-04-02 13:57:21 +00:00
sha256 = "sha256-koyOBz+pB/vkTHOR1p77ACO11/ULDIBzqsszUUpnE88=";
};
propagatedBuildInputs = [ appdirs argcomplete colorama ];
2021-04-02 13:57:21 +00:00
checkInputs = [ nose2 semver ];
checkPhase = ''
2021-04-02 13:57:21 +00:00
patchShebangs example hello
nose2
'';
2021-04-02 13:57:21 +00:00
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 ];
};
}