2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2021-08-27 14:25:00 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "anybadge";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "1.9.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2021-08-27 14:25:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jongracecox";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-9C1oPZcXjrGwvkx20E+xPGje+ATD9HwOCWWn/pg+98Q=";
|
2021-08-27 14:25:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# setup.py reads its version from the TRAVIS_TAG environment variable
|
|
|
|
TRAVIS_TAG = "v${version}";
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-08-27 14:25:00 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"anybadge"
|
|
|
|
];
|
2021-08-27 14:25:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-12-06 16:07:01 +00:00
|
|
|
description = "Python tool for generating badges for your projects";
|
2021-08-27 14:25:00 +00:00
|
|
|
homepage = "https://github.com/jongracecox/anybadge";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fabiangd ];
|
2021-08-27 14:25:00 +00:00
|
|
|
};
|
|
|
|
}
|