Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 884 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.9.1"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "orsinium-labs"; 17 repo = "svg.py"; 18 tag = version; 19 hash = "sha256-ILnPviXUHJrdeT6VTUYAZog3zY0tVA+13ddf8yVRYqE="; 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 = with lib; { 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 = licenses.mit; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}