summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-04-28 10:15:17 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2023-04-28 10:15:17 +0200
commite5d668a1f8f89b9c854c49a1840f93e155e4e9a4 (patch)
tree76a4d6e94a4a7a2a91c2cb085286e0be0376b0a9
parent2884a9a8a899ff8c1d88ce83596fa32020249ccb (diff)
downloadnixpkgs-e5d668a1f8f89b9c854c49a1840f93e155e4e9a4.tar
nixpkgs-e5d668a1f8f89b9c854c49a1840f93e155e4e9a4.tar.gz
nixpkgs-e5d668a1f8f89b9c854c49a1840f93e155e4e9a4.tar.bz2
nixpkgs-e5d668a1f8f89b9c854c49a1840f93e155e4e9a4.tar.lz
nixpkgs-e5d668a1f8f89b9c854c49a1840f93e155e4e9a4.tar.xz
nixpkgs-e5d668a1f8f89b9c854c49a1840f93e155e4e9a4.tar.zst
nixpkgs-e5d668a1f8f89b9c854c49a1840f93e155e4e9a4.zip
python310Packages.authheaders: enable tests
-rw-r--r--pkgs/development/python-modules/authheaders/default.nix19
1 files changed, 13 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/authheaders/default.nix b/pkgs/development/python-modules/authheaders/default.nix
index 43d043cf26c..37e81f71429 100644
--- a/pkgs/development/python-modules/authheaders/default.nix
+++ b/pkgs/development/python-modules/authheaders/default.nix
@@ -1,11 +1,12 @@
 { lib
-, buildPythonPackage
-, fetchPypi
 , authres
-, dnspython
+, buildPythonPackage
 , dkimpy
+, dnspython
+, fetchFromGitHub
 , publicsuffix2
 , pythonOlder
+, pytestCheckHook
 }:
 
 buildPythonPackage rec {
@@ -15,9 +16,11 @@ buildPythonPackage rec {
 
   disabled = pythonOlder "3.7";
 
-  src = fetchPypi {
-    inherit pname version;
-    hash = "sha256-kAzuiKYeZH74Tr38vO4BVDIHRNjsHX1ukmhC9EcoO98=";
+  src = fetchFromGitHub {
+    owner = "ValiMail";
+    repo = "authentication-headers";
+    rev = "refs/tags/${version}";
+    hash = "sha256-vtLt7JUdLF0gBWgMzP65UAR6A9BnTech5n0alFErcSQ=";
   };
 
   propagatedBuildInputs = [
@@ -27,6 +30,10 @@ buildPythonPackage rec {
     publicsuffix2
   ];
 
+  nativeCheckInputs = [
+    pytestCheckHook
+  ];
+
   pythonImportsCheck = [
     "authheaders"
   ];