Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 32 lines 633 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, mock 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "configargparse"; 10 version = "1.4"; 11 12 src = fetchFromGitHub { 13 owner = "bw2"; 14 repo = "ConfigArgParse"; 15 rev = "v${version}"; 16 sha256 = "0x6ar7d8qhr7gb1s8asbhqymg9jd635h7cyczqrbmvm8689zhj1d"; 17 }; 18 19 checkInputs = [ 20 mock 21 pytestCheckHook 22 ]; 23 24 pythonImportsCheck = [ "configargparse" ]; 25 26 meta = with lib; { 27 description = "A drop-in replacement for argparse"; 28 homepage = "https://github.com/bw2/ConfigArgParse"; 29 license = licenses.mit; 30 maintainers = [ maintainers.willibutz ]; 31 }; 32}