2021-11-11 21:27:08 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2021-08-27 06:49:52 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "anybadge";
|
2021-11-11 21:27:08 +00:00
|
|
|
version = "1.8.0";
|
|
|
|
format = "setuptools";
|
2021-08-27 06:49:52 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jongracecox";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-11-11 21:27:08 +00:00
|
|
|
sha256 = "sha256-xKHIoV/8qsNMcU5fd92Jjh7d7jTeYN5xakMEjR6qPX8=";
|
2021-08-27 06:49:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# setup.py reads its version from the TRAVIS_TAG environment variable
|
|
|
|
TRAVIS_TAG = "v${version}";
|
|
|
|
|
2021-11-11 21:27:08 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-08-27 06:49:52 +01:00
|
|
|
|
2021-11-11 21:27:08 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"anybadge"
|
|
|
|
];
|
2021-08-27 06:49:52 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-11-11 21:27:08 +00:00
|
|
|
description = "Python tool for generating badges for your projects";
|
2021-08-27 06:49:52 +01:00
|
|
|
homepage = "https://github.com/jongracecox/anybadge";
|
2021-11-11 21:27:08 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fabiangd ];
|
2021-08-27 06:49:52 +01:00
|
|
|
};
|
|
|
|
}
|