Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 doCheck = true; 22 nativeCheckInputs = [ pytestCheckHook ]; 23 24 meta = with lib; { 25 description = "Python library for command line argument parsing"; 26 homepage = "https://github.com/chrissimpkins/commandlines"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ danc86 ]; 29 }; 30}