2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-11-30 04:38:09 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, appdirs
|
|
|
|
, argcomplete
|
|
|
|
, colorama
|
2021-04-02 13:57:21 +00:00
|
|
|
, nose2
|
|
|
|
, semver
|
2020-11-30 04:38:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "milc";
|
2021-04-02 13:57:21 +00:00
|
|
|
version = "1.3.0";
|
2020-11-30 04:38:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "clueboard";
|
|
|
|
repo = "milc";
|
|
|
|
rev = version;
|
2021-04-02 13:57:21 +00:00
|
|
|
sha256 = "sha256-koyOBz+pB/vkTHOR1p77ACO11/ULDIBzqsszUUpnE88=";
|
2020-11-30 04:38:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ appdirs argcomplete colorama ];
|
|
|
|
|
2021-04-02 13:57:21 +00:00
|
|
|
checkInputs = [ nose2 semver ];
|
|
|
|
|
2020-11-30 04:38:09 +00:00
|
|
|
checkPhase = ''
|
2021-04-02 13:57:21 +00:00
|
|
|
patchShebangs example hello
|
|
|
|
nose2
|
2020-11-30 04:38:09 +00:00
|
|
|
'';
|
|
|
|
|
2021-04-02 13:57:21 +00:00
|
|
|
pythonImportsCheck = [ "milc" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-11-30 04:38:09 +00:00
|
|
|
description = "An Opinionated Batteries-Included Python 3 CLI Framework";
|
|
|
|
homepage = "https://milc.clueboard.co";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bhipple ];
|
|
|
|
};
|
|
|
|
}
|