1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6}: 7 8buildPythonPackage rec { 9 pname = "commandlines"; 10 version = "0.4.1"; 11 format = "setuptools"; 12 13 # PyPI source tarballs omit tests, fetch from Github instead 14 src = fetchFromGitHub { 15 owner = "chrissimpkins"; 16 repo = "commandlines"; 17 rev = "v${version}"; 18 hash = "sha256-x3iUeOTAaTKNW5Y5foMPMJcWVxu52uYZoY3Hhe3UvQ4="; 19 }; 20 21 nativeCheckInputs = [ pytestCheckHook ]; 22 23 meta = with lib; { 24 description = "Python library for command line argument parsing"; 25 homepage = "https://github.com/chrissimpkins/commandlines"; 26 license = licenses.mit; 27 maintainers = with maintainers; [ danc86 ]; 28 }; 29}