about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2022-02-05 23:59:06 +0100
committerGitHub <noreply@github.com>2022-02-05 23:59:06 +0100
commit191026b9cf7e9ea6f69a81a8994ed3b952914671 (patch)
tree0469b807f4437017cf03e274c39cf9fa6e19ac68 /pkgs/development
parentd89eed6160d26f91df9db2c9694934e9e7f2e63a (diff)
parenta72c466cb92165b27e20e43eac8988b75fdb3698 (diff)
Merge pull request #158285 from fabaff/bump-pyaussiebb
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/pyaussiebb/default.nix23
1 files changed, 16 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/pyaussiebb/default.nix b/pkgs/development/python-modules/pyaussiebb/default.nix
index ccee1ff51e840..63edd6e60f8a5 100644
--- a/pkgs/development/python-modules/pyaussiebb/default.nix
+++ b/pkgs/development/python-modules/pyaussiebb/default.nix
@@ -2,33 +2,42 @@
 , aiohttp
 , buildPythonPackage
 , fetchFromGitHub
-, pythonOlder
 , loguru
+, poetry-core
+, pythonOlder
 , requests
 }:
 
 buildPythonPackage rec {
   pname = "pyaussiebb";
-  version = "0.0.9";
-  format = "setuptools";
+  version = "0.0.11";
+  format = "pyproject";
 
-  disabled = pythonOlder "3.7";
+  disabled = pythonOlder "3.9";
 
   src = fetchFromGitHub {
     owner = "yaleman";
     repo = "aussiebb";
     rev = "v${version}";
-    hash = "sha256-DMU29dTqDaPLQS20iuHIph6mhBdj6ni3+MA9KkRMtzg=";
+    hash = "sha256-aL+n2ut7n6UUyymMEHoFMhRvK9iFRRunYE9ZirKFXhc=";
   };
 
+  nativeBuildInputs = [
+    poetry-core
+  ];
+
   propagatedBuildInputs = [
     aiohttp
     requests
     loguru
   ];
 
-  # Tests require network access
-  # https://github.com/yaleman/aussiebb/issues/6
+  postPatch = ''
+    substituteInPlace pyproject.toml \
+      --replace 'requests = "^2.27.1"' 'requests = "*"'
+  '';
+
+  # Tests require credentials and requests-testing
   doCheck = false;
 
   pythonImportsCheck = [