1{ lib
2, fetchFromGitHub
3, buildPythonPackage
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "anybadge";
9 version = "1.11.1";
10 format = "setuptools";
11
12 src = fetchFromGitHub {
13 owner = "jongracecox";
14 repo = pname;
15 rev = "v${version}";
16 sha256 = "sha256-6br4WUwE1ovAneYUeTHcUN3PH5Wm1rnLYCpXDUshk7Q=";
17 };
18
19 # setup.py reads its version from the TRAVIS_TAG environment variable
20 TRAVIS_TAG = "v${version}";
21
22 checkInputs = [
23 pytestCheckHook
24 ];
25
26 pythonImportsCheck = [
27 "anybadge"
28 ];
29
30 meta = with lib; {
31 description = "Python tool for generating badges for your projects";
32 homepage = "https://github.com/jongracecox/anybadge";
33 license = licenses.mit;
34 maintainers = with maintainers; [ fabiangd ];
35 };
36}