summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyaussiebb/default.nix
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-02-05 22:58:31 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2022-02-05 22:58:40 +0100
commita72c466cb92165b27e20e43eac8988b75fdb3698 (patch)
tree06e53f18db83e823fdce4a805607ae492cfbefcd /pkgs/development/python-modules/pyaussiebb/default.nix
parent07a283bb00398dc8b32e31269ca1fa051c646305 (diff)
downloadnixpkgs-a72c466cb92165b27e20e43eac8988b75fdb3698.tar
nixpkgs-a72c466cb92165b27e20e43eac8988b75fdb3698.tar.gz
nixpkgs-a72c466cb92165b27e20e43eac8988b75fdb3698.tar.bz2
nixpkgs-a72c466cb92165b27e20e43eac8988b75fdb3698.tar.lz
nixpkgs-a72c466cb92165b27e20e43eac8988b75fdb3698.tar.xz
nixpkgs-a72c466cb92165b27e20e43eac8988b75fdb3698.tar.zst
nixpkgs-a72c466cb92165b27e20e43eac8988b75fdb3698.zip
python3Packages.pyaussiebb: 0.0.9 -> 0.0.11
Diffstat (limited to 'pkgs/development/python-modules/pyaussiebb/default.nix')
-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 ccee1ff51e8..63edd6e60f8 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 = [