summary refs log tree commit diff
path: root/pkgs/development/python-modules/dufte
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-08-01 11:10:05 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-08-01 11:10:05 +0200
commita5d975648da42e79dc4da422939d0fc588b23765 (patch)
treeb7eeeced128aea01fbbbd57202f2de4be5c922f6 /pkgs/development/python-modules/dufte
parent8a0739ba6d3b0f026cc636c4e624e811590b22a1 (diff)
python3Packages.dufte: 0.2.12 -> 0.2.27
Diffstat (limited to 'pkgs/development/python-modules/dufte')
-rw-r--r--pkgs/development/python-modules/dufte/default.nix25
1 files changed, 11 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/dufte/default.nix b/pkgs/development/python-modules/dufte/default.nix
index d1c9680cb7b98..b9a96cbc8298e 100644
--- a/pkgs/development/python-modules/dufte/default.nix
+++ b/pkgs/development/python-modules/dufte/default.nix
@@ -1,23 +1,23 @@
 { lib
 , buildPythonPackage
-, fetchPypi
-, isPy3k
+, fetchFromGitHub
 , pythonOlder
 , importlib-metadata
 , matplotlib
 , numpy
-, exdown
 , pytestCheckHook
 }:
 
 buildPythonPackage rec {
   pname = "dufte";
-  version = "0.2.12";
-  disabled = !isPy3k;
+  version = "0.2.27";
+  disabled = pythonOlder "3.6";
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "0ag1d7h1wijkc7v2vpgkbqjlnpiwd4nh8zhxiby0989bpmlp3jr3";
+  src = fetchFromGitHub {
+    owner = "nschloe";
+    repo = pname;
+    rev = version;
+    sha256 = "1i68h224hx9clxj3l0rd2yigsi6fqsr3x10vj5hf3j6s69iah7r3";
   };
   format = "pyproject";
 
@@ -28,13 +28,10 @@ buildPythonPackage rec {
     importlib-metadata
   ];
 
-  preCheck = ''
-    export HOME=$TMPDIR
-    mkdir -p $HOME/.matplotlib
-    echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
-  '';
+  checkInputs = [
+    pytestCheckHook
+  ];
 
-  checkInputs = [ exdown pytestCheckHook ];
   pythonImportsCheck = [ "dufte" ];
 
   meta = with lib; {