2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-02-02 18:25:31 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, packaging
|
2021-12-06 16:07:01 +00:00
|
|
|
, pytestCheckHook
|
2023-02-02 18:25:31 +00:00
|
|
|
, pythonOlder
|
|
|
|
, requests
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
2021-08-27 14:25:00 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "anybadge";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "1.14.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2021-08-27 14:25:00 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jongracecox";
|
|
|
|
repo = pname;
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-+CkkFCShCYtxKiCWRQcgTFcekc/g7ujQj9MdnG1+a0A=";
|
2021-08-27 14:25:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# setup.py reads its version from the TRAVIS_TAG environment variable
|
|
|
|
TRAVIS_TAG = "v${version}";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
packaging
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
pytestCheckHook
|
2023-02-02 18:25:31 +00:00
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Comparison of CLI output fails
|
|
|
|
"test_module_same_output_as_main_cli"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# No anybadge-server
|
|
|
|
"tests/test_server.py"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
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";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/jongracecox/anybadge/releases/tag/v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fabiangd ];
|
2021-08-27 14:25:00 +00:00
|
|
|
};
|
|
|
|
}
|