nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 883 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flit-core, 6 pytestCheckHook, 7 pyyaml, 8}: 9 10buildPythonPackage rec { 11 pname = "svg-py"; 12 version = "1.10.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "orsinium-labs"; 17 repo = "svg.py"; 18 tag = version; 19 hash = "sha256-ZbMDjo2p0DnLB5iwQ4J3NIP/zjPsBLq7vKStF9SzF9Y="; 20 }; 21 22 build-system = [ flit-core ]; 23 24 nativeCheckInputs = [ 25 pytestCheckHook 26 pyyaml 27 ]; 28 29 pythonImportsCheck = [ "svg" ]; 30 31 disabledTestPaths = [ 32 # Tests need additional files 33 "tests/test_attributes.py" 34 ]; 35 36 meta = { 37 description = "Type-safe Python library to generate SVG files"; 38 homepage = "https://github.com/orsinium-labs/svg.py"; 39 changelog = "https://github.com/orsinium-labs/svg.py/releases/tag/${src.tag}"; 40 license = lib.licenses.mit; 41 maintainers = with lib.maintainers; [ fab ]; 42 }; 43}