nixpkgs/pkgs/development/python-modules/anybadge/default.nix
Fabian Affolter a2b16c5a3a python310Packages.anybadge: add missing inputs
- disable failing tests
2023-01-24 14:31:06 +01:00

58 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, packaging
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "anybadge";
version = "1.14.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jongracecox";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-+CkkFCShCYtxKiCWRQcgTFcekc/g7ujQj9MdnG1+a0A=";
};
# setup.py reads its version from the TRAVIS_TAG environment variable
TRAVIS_TAG = "v${version}";
propagatedBuildInputs = [
packaging
];
nativeCheckInputs = [
pytestCheckHook
requests
];
disabledTests = [
# Comparison of CLI output fails
"test_module_same_output_as_main_cli"
];
disabledTestPaths = [
# No anybadge-server
"tests/test_server.py"
];
pythonImportsCheck = [
"anybadge"
];
meta = with lib; {
description = "Python tool for generating badges for your projects";
homepage = "https://github.com/jongracecox/anybadge";
changelog = "https://github.com/jongracecox/anybadge/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fabiangd ];
};
}