depot/third_party/nixpkgs/pkgs/development/python-modules/anybadge/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

57 lines
1.2 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 ];
};
}