nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 62 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 packaging, 7 pytestCheckHook, 8 requests, 9 sh, 10}: 11 12buildPythonPackage rec { 13 pname = "anybadge"; 14 version = "1.16.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "jongracecox"; 19 repo = "anybadge"; 20 tag = "v${version}"; 21 hash = "sha256-9qGmiIGzVdWHMyurMqTqEz+NKYlc/5zt6HPsssCH4Pk="; 22 }; 23 24 postPatch = '' 25 substituteInPlace setup.py \ 26 --replace-fail '=get_version(),' "='$version'," 27 ''; 28 29 build-system = [ 30 setuptools 31 ]; 32 33 dependencies = [ 34 packaging 35 ]; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 requests 40 sh 41 ]; 42 43 disabledTests = [ 44 # Comparison of CLI output fails 45 "test_module_same_output_as_main_cli" 46 ]; 47 48 disabledTestPaths = [ 49 # No anybadge-server 50 "tests/test_server.py" 51 ]; 52 53 pythonImportsCheck = [ "anybadge" ]; 54 55 meta = { 56 description = "Python tool for generating badges for your projects"; 57 homepage = "https://github.com/jongracecox/anybadge"; 58 changelog = "https://github.com/jongracecox/anybadge/releases/tag/${src.tag}"; 59 license = lib.licenses.mit; 60 maintainers = with lib.maintainers; [ fabiangd ]; 61 }; 62}