depot/third_party/nixpkgs/pkgs/development/python-modules/anybadge/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

54 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
packaging,
pytestCheckHook,
pythonOlder,
requests,
}:
buildPythonPackage rec {
pname = "anybadge";
version = "1.14.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jongracecox";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-+CkkFCShCYtxKiCWRQcgTFcekc/g7ujQj9MdnG1+a0A=";
};
# setup.py reads its version from the TRAVIS_TAG environment variable
TRAVIS_TAG = "v${version}";
propagatedBuildInputs = [ packaging ];
nativeCheckInputs = [
pytestCheckHook
requests
];
disabledTests = [
# Comparison of CLI output fails
"test_module_same_output_as_main_cli"
];
disabledTestPaths = [
# No anybadge-server
"tests/test_server.py"
];
pythonImportsCheck = [ "anybadge" ];
meta = with lib; {
description = "Python tool for generating badges for your projects";
homepage = "https://github.com/jongracecox/anybadge";
changelog = "https://github.com/jongracecox/anybadge/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fabiangd ];
};
}