02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
36 lines
762 B
Nix
36 lines
762 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "anybadge";
|
|
version = "1.11.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jongracecox";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-6br4WUwE1ovAneYUeTHcUN3PH5Wm1rnLYCpXDUshk7Q=";
|
|
};
|
|
|
|
# setup.py reads its version from the TRAVIS_TAG environment variable
|
|
TRAVIS_TAG = "v${version}";
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"anybadge"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python tool for generating badges for your projects";
|
|
homepage = "https://github.com/jongracecox/anybadge";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fabiangd ];
|
|
};
|
|
}
|