about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2021-01-22 19:33:58 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-01-22 14:11:34 -0800
commit8c1ce4ec70905e26c4961715d401994d4d71d2ae (patch)
treeef7845848b9fba3eca3f0747e8b2c787fa415989 /pkgs
parent0bc275e63423456d6deb650e146120c39c1e0723 (diff)
downloadnixlib-8c1ce4ec70905e26c4961715d401994d4d71d2ae.tar
nixlib-8c1ce4ec70905e26c4961715d401994d4d71d2ae.tar.gz
nixlib-8c1ce4ec70905e26c4961715d401994d4d71d2ae.tar.bz2
nixlib-8c1ce4ec70905e26c4961715d401994d4d71d2ae.tar.lz
nixlib-8c1ce4ec70905e26c4961715d401994d4d71d2ae.tar.xz
nixlib-8c1ce4ec70905e26c4961715d401994d4d71d2ae.tar.zst
nixlib-8c1ce4ec70905e26c4961715d401994d4d71d2ae.zip
pythonPackages.transitions: 0.8.5 -> 0.8.6
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/transitions/default.nix25
1 files changed, 10 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/transitions/default.nix b/pkgs/development/python-modules/transitions/default.nix
index 82958029923a..2dda33fd9682 100644
--- a/pkgs/development/python-modules/transitions/default.nix
+++ b/pkgs/development/python-modules/transitions/default.nix
@@ -1,26 +1,21 @@
-{ lib, stdenv, buildPythonPackage, fetchPypi
-, six, nose, mock, dill, pycodestyle }:
+{ lib, buildPythonPackage, fetchFromGitHub
+, six, pytestCheckHook, mock, dill, pycodestyle }:
 
 buildPythonPackage rec {
   pname = "transitions";
-  version = "0.8.5";
+  version = "0.8.6";
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "e441c66a0c753d56c01c3e5e547f21dbe4a5569c939f12477475c5e81d79769b";
+  # test_codestyle.py fails in PyPI sdist
+  src = fetchFromGitHub {
+    owner = "pytransitions";
+    repo = "transitions";
+    rev = version;
+    sha256 = "1d913hzzyqhdhhbkbvjw65dqkajrw50a4sxhyxk0jlg8pcs7bs7v";
   };
 
-  postPatch = ''
-    substituteInPlace setup.py --replace "dill<0.2.7" dill
-  '';
-
   propagatedBuildInputs = [ six ];
 
-  checkInputs = [ nose mock dill pycodestyle ];
-
-  checkPhase = ''
-    nosetests
-  '';
+  checkInputs = [ pytestCheckHook mock dill pycodestyle ];
 
   meta = with lib; {
     homepage = "https://github.com/pytransitions/transitions";