about summary refs log tree commit diff
path: root/pkgs/development/python-modules/whisper
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-08-21 10:21:34 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-08-21 10:21:34 +0200
commitec60c5a884f84e7f6a3dbbed76d2a0c26c5dd334 (patch)
tree7db17b7e8bd4afe5b5170bc72d38694923ae6680 /pkgs/development/python-modules/whisper
parent5604caae7561d0c4bf64b91dadb6164dea0e9b92 (diff)
python3Packages.whisper: fix build
Diffstat (limited to 'pkgs/development/python-modules/whisper')
-rw-r--r--pkgs/development/python-modules/whisper/default.nix35
1 files changed, 28 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/whisper/default.nix b/pkgs/development/python-modules/whisper/default.nix
index d25053f123641..28a2c15a8dbd1 100644
--- a/pkgs/development/python-modules/whisper/default.nix
+++ b/pkgs/development/python-modules/whisper/default.nix
@@ -1,19 +1,40 @@
-{ lib, buildPythonPackage, fetchPypi, mock, six }:
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, mock
+, six
+, pytestCheckHook
+}:
 
 buildPythonPackage rec {
   pname = "whisper";
   version = "1.1.8";
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "345f35d0dccaf181e0aa4353e6c13f40f5cceda10a3c7021dafab29f004f62ae";
+  src = fetchFromGitHub {
+    owner = "graphite-project";
+    repo = pname;
+    rev = version;
+    sha256 = "11f7sarj62zgpw3ak4a2q55lj7ap4039l9ybc3a6yvs1ppvrcn7x";
   };
 
-  propagatedBuildInputs = [ six ];
-  checkInputs = [ mock ];
+  propagatedBuildInputs = [
+    six
+  ];
+
+  checkInputs = [
+    mock
+    pytestCheckHook
+  ];
+
+  disabledTests = [
+    # whisper-resize.py: not found
+    "test_resize_with_aggregate"
+  ];
+
+  pythonImportsCheck = [ "whisper" ];
 
   meta = with lib; {
-    homepage = "http://graphite.wikidot.com/";
+    homepage = "https://github.com/graphite-project/whisper";
     description = "Fixed size round-robin style database";
     maintainers = with maintainers; [ offline basvandijk ];
     license = licenses.asl20;