Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 58 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, setuptools, packaging, tomli, pytestCheckHook, pip,}:
buildPythonPackage rec { pname = "argparse-manpage"; version = "4.6"; pyproject = true;
src = fetchFromGitHub { owner = "praiskup"; repo = "argparse-manpage"; tag = "v${version}"; hash = "sha256-2GJDFLCaPTb8sQCAv9qZ+pIysFE7IaKh9co3Mb8Dutc="; };
nativeBuildInputs = [ setuptools packaging ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ tomli ];
nativeCheckInputs = [ pytestCheckHook pip ];
disabledTests = [ # TypeError: dist must be a Distribution instance "test_old_example" "test_old_example_file_name" ];
pythonImportsCheck = [ "argparse_manpage" ];
optional-dependencies = { setuptools = [ setuptools ]; };
meta = with lib; { description = "Automatically build man-pages for your Python project"; homepage = "https://github.com/praiskup/argparse-manpage"; changelog = "https://github.com/praiskup/argparse-manpage/blob/${src.rev}/NEWS"; license = licenses.asl20; maintainers = with maintainers; [ nickcao ]; mainProgram = "argparse-manpage"; };}