about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pykka
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2021-08-28 22:33:29 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2021-09-05 15:00:35 +0200
commitebe4ea3be238597bc974b98014b13d7048c3bf15 (patch)
tree37322ecbd70c5a028fcadd35c065719de0f289ea /pkgs/development/python-modules/pykka
parent6914f2a363492bdeaca570698daea82f77ee7baa (diff)
python3Packages.pykka: fix build, tests and refactor
Tests were not available in the PyPi package anymore.
Diffstat (limited to 'pkgs/development/python-modules/pykka')
-rw-r--r--pkgs/development/python-modules/pykka/default.nix32
1 files changed, 25 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/pykka/default.nix b/pkgs/development/python-modules/pykka/default.nix
index f219375f93ef2..dfd84fe066d0a 100644
--- a/pkgs/development/python-modules/pykka/default.nix
+++ b/pkgs/development/python-modules/pykka/default.nix
@@ -1,21 +1,39 @@
-{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pytest-mock }:
+{ lib
+, buildPythonPackage
+, pythonOlder
+, fetchFromGitHub
+, poetry-core
+, pytestCheckHook
+, pytest-mock
+}:
 
 buildPythonPackage rec {
-  pname = "Pykka";
+  pname = "pykka";
   version = "3.0.1";
+  format = "pyproject";
+  disabled = pythonOlder "3.6.1";
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "da59f77bc6a70e01996259da806d09b0dbc00dabe874ca9558fd5eb1698709c9";
+  src = fetchFromGitHub {
+    owner = "jodal";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1h3brgm8y4a9s991y0drkp0vvmxix9f2b49f9w6ibhkhr37gc0lh";
   };
 
-  checkInputs = [ pytestCheckHook pytest-mock ];
+  nativeBuildInputs = [
+    poetry-core
+  ];
+
+  checkInputs = [
+    pytestCheckHook
+    pytest-mock
+  ];
 
   meta = with lib; {
     homepage = "https://www.pykka.org/";
     description = "A Python implementation of the actor model";
     changelog = "https://github.com/jodal/pykka/blob/v${version}/docs/changes.rst";
-    maintainers = [ maintainers.marsam ];
+    maintainers = with maintainers; [ marsam ];
     license = licenses.asl20;
   };
 }