summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorNick Cao2023-05-18 01:02:49 -0600
committerGitHub2023-05-18 01:02:49 -0600
commit3fb2ad25c3a28a5dc9ecba3845369bd6c02e6421 (patch)
tree869025eb128f50c8f57f327a01d4709014056276 /pkgs
parent4005b64d8624ce22c2aff7c7067a351e955ea132 (diff)
parentdb2b0136e4116fd95173b04421ec3965fbc8d83d (diff)
Merge pull request #232351 from NickCao/justbytes
python3Packages.justbytes: 0.15 -> 0.15.2
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/justbytes/default.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/justbytes/default.nix b/pkgs/development/python-modules/justbytes/default.nix
index dde6c5d4bd0e..f517c30c01b3 100644
--- a/pkgs/development/python-modules/justbytes/default.nix
+++ b/pkgs/development/python-modules/justbytes/default.nix
@@ -1,25 +1,28 @@
 { lib
 , buildPythonPackage
-, fetchPypi
+, fetchFromGitHub
 , justbases
+, unittestCheckHook
 , hypothesis
 }:
 
 buildPythonPackage rec {
   pname = "justbytes";
-  version = "0.15";
+  version = "0.15.2";
 
-  src = fetchPypi {
-    inherit pname version;
-    hash = "sha256-qrMO9X0v5yYjeWa72mogegR+ii8tCi+o7qZ+Aff2wZQ=";
+  src = fetchFromGitHub {
+    owner = "mulkieran";
+    repo = pname;
+    rev = "refs/tags/v${version}";
+    hash = "sha256-+jwIK1ZU+j58VoOfZAm7GdFy7KHU28khwzxhYhcws74=";
   };
 
   propagatedBuildInputs = [ justbases ];
-  nativeCheckInputs = [ hypothesis ];
+  nativeCheckInputs = [ unittestCheckHook hypothesis ];
 
   meta = with lib; {
     description = "computing with and displaying bytes";
-    homepage = "https://pythonhosted.org/justbytes";
+    homepage = "https://github.com/mulkieran/justbytes";
     license = licenses.lgpl2Plus;
     maintainers = with maintainers; [ nickcao ];
   };