about summary refs log tree commit diff
path: root/pkgs/development/python-modules/miauth/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/miauth/default.nix')
-rw-r--r--pkgs/development/python-modules/miauth/default.nix23
1 files changed, 8 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/miauth/default.nix b/pkgs/development/python-modules/miauth/default.nix
index 7ebf4124dcc41..7070577839212 100644
--- a/pkgs/development/python-modules/miauth/default.nix
+++ b/pkgs/development/python-modules/miauth/default.nix
@@ -1,19 +1,13 @@
 {
   lib,
+  bluepy,
   buildPythonPackage,
+  cryptography,
   fetchPypi,
+  pytestCheckHook,
   pythonOlder,
   pythonRelaxDepsHook,
-
-  # build-system
   setuptools,
-
-  # dependencies
-  bluepy,
-  cryptography,
-
-  # tests
-  pytestCheckHook,
 }:
 
 buildPythonPackage rec {
@@ -28,14 +22,13 @@ buildPythonPackage rec {
     hash = "sha256-2/4nFInpdY8fb/b+sXhgT6ZPtEgBV+KHMyLnxIp6y/U=";
   };
 
-  nativeBuildInputs = [
-    setuptools
-    pythonRelaxDepsHook
-  ];
+  build-system = [ setuptools ];
+
+  nativeBuildInputs = [ pythonRelaxDepsHook ];
 
   pythonRelaxDeps = [ "cryptography" ];
 
-  propagatedBuildInputs = [
+  dependencies = [
     bluepy
     cryptography
   ];
@@ -46,9 +39,9 @@ buildPythonPackage rec {
 
   meta = with lib; {
     description = "Authenticate and interact with Xiaomi devices over BLE";
-    mainProgram = "miauth";
     homepage = "https://github.com/dnandha/miauth";
     license = licenses.agpl3Only;
     maintainers = with maintainers; [ fab ];
+    mainProgram = "miauth";
   };
 }