depot/third_party/nixpkgs/pkgs/development/python-modules/anybadge/default.nix
Default email 58849dfc4f Project import generated by Copybara.
GitOrigin-RevId: 21c937f8cb1e6adcfeb36dfd6c90d9d9bfab1d28
2021-08-27 16:25:00 +02:00

27 lines
765 B
Nix

{ lib, fetchFromGitHub, buildPythonPackage, pytestCheckHook }:
buildPythonPackage rec {
pname = "anybadge";
version = "1.7.0";
src = fetchFromGitHub {
owner = "jongracecox";
repo = pname;
rev = "v${version}";
sha256 = "1d02fnig04zlrhfqqcf4505vy4p51whl2ifilnx3mkhis9lcwrmr";
};
# setup.py reads its version from the TRAVIS_TAG environment variable
TRAVIS_TAG = "v${version}";
pythonImportsCheck = [ "anybadge" ];
checkInputs = [ pytestCheckHook ];
meta = with lib; {
description = "A Python project for generating badges for your projects, with a focus on simplicity and flexibility";
license = licenses.mit;
homepage = "https://github.com/jongracecox/anybadge";
maintainers = [ maintainers.fabiangd ];
};
}