at master 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch2, 6 setuptools, 7 lxml, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "svgutils"; 13 version = "0.3.4"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "btel"; 18 repo = "svg_utils"; 19 tag = "v${version}"; 20 hash = "sha256-ITvZx+3HMbTyaRmCb7tR0LKqCxGjqDdV9/2taziUD0c="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ lxml ]; 26 27 patches = [ 28 # Remove nose dependency, see: https://github.com/btel/svg_utils/pull/131 29 30 # this first commit is required, as isort moved nose imports 31 (fetchpatch2 { 32 url = "https://github.com/btel/svg_utils/commit/48b078a729aeb6b1160142ab65157474c95a61b6.patch?full_index=1"; 33 hash = "sha256-9toOFfNkgGF3TvM340vYOTkuSEHBeiyBRSGqqobfiqI="; 34 }) 35 36 # migrate to pytest 37 (fetchpatch2 { 38 url = "https://github.com/btel/svg_utils/commit/931a80220be7c0efa2fc6e1d47858d69a08df85e.patch?full_index=1"; 39 hash = "sha256-SMv0i8p3s57TDn6NM17RrHF9kVgsy2YJJ0KEBQKn2J0="; 40 }) 41 ]; 42 43 nativeCheckInputs = [ pytestCheckHook ]; 44 45 pythonImportsCheck = [ "svgutils" ]; 46 47 meta = with lib; { 48 description = "Python tools to create and manipulate SVG files"; 49 homepage = "https://github.com/btel/svg_utils"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ bcdarwin ]; 52 }; 53}