depot/third_party/nixpkgs/pkgs/development/python-modules/commandlines/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

32 lines
714 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=";
};
doCheck = true;
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Python library for command line argument parsing";
homepage = "https://github.com/chrissimpkins/commandlines";
license = licenses.mit;
maintainers = with maintainers; [ danc86 ];
};
}