Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "decli"; 12 version = "0.6.1"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "woile"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-FZYKNKkQExx/YBn5y/W0+0aMlenuwEctYTL7LAXMZGE="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "decli" ]; 29 30 meta = with lib; { 31 description = "Minimal, easy to use, declarative command line interface tool"; 32 homepage = "https://github.com/Woile/decli"; 33 changelog = "https://github.com/woile/decli/blob/v${version}/CHANGELOG.md"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ lovesegfault ]; 36 }; 37}