mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 09:24:20 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
29 lines
693 B
Nix
29 lines
693 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "commandlines";
|
|
version = "0.4.1";
|
|
format = "setuptools";
|
|
|
|
# PyPI source tarballs omit tests, fetch from Github instead
|
|
src = fetchFromGitHub {
|
|
owner = "chrissimpkins";
|
|
repo = "commandlines";
|
|
rev = "v${version}";
|
|
hash = "sha256-x3iUeOTAaTKNW5Y5foMPMJcWVxu52uYZoY3Hhe3UvQ4=";
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = {
|
|
description = "Python library for command line argument parsing";
|
|
homepage = "https://github.com/chrissimpkins/commandlines";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ danc86 ];
|
|
};
|
|
}
|