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