about summary refs log tree commit diff
path: root/pkgs/development/python-modules/bidict/default.nix
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2023-02-27 02:14:09 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-03-03 23:56:34 +0100
commit2706675bcf0734e5733c94f55ed52ed83f5d1639 (patch)
tree5b1e7aabee32abf1ec13abd54f87fa148a156af7 /pkgs/development/python-modules/bidict/default.nix
parentedf2e79489aa14f39a812460790826080e9b245b (diff)
python3Packages.bidict: 0.22.0 -> 0.22.1
https://github.com/jab/bidict/blob/v0.22.1/CHANGELOG.rst
Diffstat (limited to 'pkgs/development/python-modules/bidict/default.nix')
-rw-r--r--pkgs/development/python-modules/bidict/default.nix21
1 files changed, 16 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/bidict/default.nix b/pkgs/development/python-modules/bidict/default.nix
index 45ba90794d4f1..2ecbd1124685b 100644
--- a/pkgs/development/python-modules/bidict/default.nix
+++ b/pkgs/development/python-modules/bidict/default.nix
@@ -1,9 +1,11 @@
 { lib
 , buildPythonPackage
-, fetchPypi
+, fetchFromGitHub
+, setuptools
 , sphinx
 , hypothesis
 , py
+, pytest-xdist
 , pytestCheckHook
 , pytest-benchmark
 , sortedcollections
@@ -13,15 +15,22 @@
 
 buildPythonPackage rec {
   pname = "bidict";
-  version = "0.22.0";
+  version = "0.22.1";
+  format = "pyproject";
 
   disabled = pythonOlder "3.7";
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "sha256-XIJrPhXpfMbmFd4pV1aEfCgqebecVDDTv8kJsayfW9g=";
+  src = fetchFromGitHub {
+    owner = "jab";
+    repo = "bidict";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-mPBruasjQwErl5M91OBf71hArztdRVONOCnqos180DY=";
   };
 
+  nativeBuildInputs = [
+    setuptools
+  ];
+
   propagatedBuildInputs = [
     sphinx
   ];
@@ -29,6 +38,7 @@ buildPythonPackage rec {
   nativeCheckInputs = [
     hypothesis
     py
+    pytest-xdist
     pytestCheckHook
     pytest-benchmark
     sortedcollections
@@ -39,6 +49,7 @@ buildPythonPackage rec {
 
   meta = with lib; {
     homepage = "https://github.com/jab/bidict";
+    changelog = "https://github.com/jab/bidict/blob/v${version}/CHANGELOG.rst";
     description = "Efficient, Pythonic bidirectional map data structures and related functionality";
     license = licenses.mpl20;
     maintainers = with maintainers; [ jakewaksbaum ];