about summary refs log tree commit diff
path: root/pkgs/development/python-modules/svg-path/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/svg-path/default.nix')
-rw-r--r--pkgs/development/python-modules/svg-path/default.nix37
1 files changed, 21 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/svg-path/default.nix b/pkgs/development/python-modules/svg-path/default.nix
index 2ec9f5b78025..093970206927 100644
--- a/pkgs/development/python-modules/svg-path/default.nix
+++ b/pkgs/development/python-modules/svg-path/default.nix
@@ -1,23 +1,29 @@
-{ lib
-, buildPythonPackage
-, fetchPypi
-, pillow
-, pytestCheckHook
-, pythonOlder
+{
+  lib,
+  buildPythonPackage,
+  fetchFromGitHub,
+  setuptools,
+  pillow,
+  pytestCheckHook,
+  pythonOlder,
 }:
 
 buildPythonPackage rec {
   pname = "svg.path";
-  version = "6.2";
-  format = "setuptools";
+  version = "6.3";
+  pyproject = true;
 
-  disabled = pythonOlder "3.7";
+  disabled = pythonOlder "3.8";
 
-  src = fetchPypi {
-    inherit pname version;
-    hash = "sha256-GiFZ+duJjfk8RjfP08yvfaH9Bz9Z+ppZUMc+RtSqGso=";
+  src = fetchFromGitHub {
+    owner = "regebro";
+    repo = "svg.path";
+    rev = "refs/tags/${version}";
+    hash = "sha256-qes6cKw/Ok0WgcPO/NPuREVNUbnlhm82jF90dK7Ay8U=";
   };
 
+  build-system = [ setuptools ];
+
   nativeCheckInputs = [
     pillow
     pytestCheckHook
@@ -28,14 +34,13 @@ buildPythonPackage rec {
     "test_image"
   ];
 
-  pythonImportsCheck = [
-    "svg.path"
-  ];
+  pythonImportsCheck = [ "svg.path" ];
 
   meta = with lib; {
     description = "SVG path objects and parser";
     homepage = "https://github.com/regebro/svg.path";
+    changelog = "https://github.com/regebro/svg.path/blob/${version}/CHANGES.txt";
     license = licenses.mit;
-    maintainers = with maintainers; [ goibhniu ];
+    maintainers = [ ];
   };
 }