mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-09 06:43:36 +00:00
70 lines
1.1 KiB
Nix
70 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
argcomplete,
|
|
colorama,
|
|
halo,
|
|
platformdirs,
|
|
spinners,
|
|
types-colorama,
|
|
typing-extensions,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
semver,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "milc";
|
|
version = "1.10.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "clueboard";
|
|
repo = "milc";
|
|
tag = version;
|
|
hash = "sha256-zy62VjtoNhl5hXywJO1p9rO19YAJeKOg+NkfCfgn1Xs=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Needed for tests
|
|
patchShebangs --build \
|
|
example \
|
|
custom_logger \
|
|
questions \
|
|
sparkline \
|
|
hello \
|
|
passwd_confirm \
|
|
passwd_complexity \
|
|
config_source
|
|
'';
|
|
|
|
dependencies = [
|
|
argcomplete
|
|
colorama
|
|
halo
|
|
platformdirs
|
|
spinners
|
|
types-colorama
|
|
typing-extensions
|
|
];
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
semver
|
|
];
|
|
|
|
pythonImportsCheck = [ "milc" ];
|
|
|
|
meta = {
|
|
description = "Opinionated Batteries-Included Python 3 CLI Framework";
|
|
mainProgram = "milc-color";
|
|
homepage = "https://milc.clueboard.co";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|