about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-05-22 12:02:13 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2024-05-22 12:02:13 +0200
commit85b2d39cfebaeefbe67968e42999379a61b17fc2 (patch)
tree95bf0a393076467d47bb1ab96546ad3172fa87a0
parentf571160ef6720bb8058c9ffe48a1c2ec4be93849 (diff)
python311Packages.amcrest: refactor
-rw-r--r--pkgs/development/python-modules/amcrest/default.nix19
1 files changed, 13 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/amcrest/default.nix b/pkgs/development/python-modules/amcrest/default.nix
index 77e7a2e0f0320..4b48b513d6394 100644
--- a/pkgs/development/python-modules/amcrest/default.nix
+++ b/pkgs/development/python-modules/amcrest/default.nix
@@ -3,20 +3,21 @@
   argcomplete,
   buildPythonPackage,
   fetchFromGitHub,
-  mock,
   httpx,
+  mock,
   pytestCheckHook,
   pythonOlder,
   requests,
   responses,
-  urllib3,
+  setuptools,
   typing-extensions,
+  urllib3,
 }:
 
 buildPythonPackage rec {
   pname = "amcrest";
   version = "1.9.8";
-  format = "setuptools";
+  pyproject = true;
 
   disabled = pythonOlder "3.7";
 
@@ -27,7 +28,11 @@ buildPythonPackage rec {
     hash = "sha256-v0jWEZo06vltEq//suGrvJ/AeeDxUG5CCFhbf03q34w=";
   };
 
-  propagatedBuildInputs = [
+  build-system = [
+    setuptools
+  ];
+
+  dependencies = [
     argcomplete
     httpx
     requests
@@ -41,13 +46,15 @@ buildPythonPackage rec {
     responses
   ];
 
-  pythonImportsCheck = [ "amcrest" ];
+  pythonImportsCheck = [
+    "amcrest"
+  ];
 
   meta = with lib; {
     description = "Python module for Amcrest and Dahua Cameras";
     homepage = "https://github.com/tchellomello/python-amcrest";
     changelog = "https://github.com/tchellomello/python-amcrest/releases/tag/${version}";
-    license = with licenses; [ gpl2Only ];
+    license = licenses.gpl2Only;
     maintainers = with maintainers; [ fab ];
   };
 }