python311Packages.pysaml2: 7.4.1 -> 7.4.2
Diff: IdentityPython/pysaml2@v7.4.1...v7.4.2 Changelog: https://github.com/IdentityPython/pysaml2/releases/tag/v7.4.2
This commit is contained in:
parent
187e306cad
commit
7cb58cc153
1 changed files with 18 additions and 27 deletions
|
@ -3,7 +3,6 @@
|
||||||
, cryptography
|
, cryptography
|
||||||
, defusedxml
|
, defusedxml
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchPypi
|
|
||||||
, importlib-resources
|
, importlib-resources
|
||||||
, poetry-core
|
, poetry-core
|
||||||
, pyasn1
|
, pyasn1
|
||||||
|
@ -21,18 +20,9 @@
|
||||||
, xmlsec
|
, xmlsec
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
buildPythonPackage rec {
|
||||||
pymongo3 = pymongo.overridePythonAttrs(old: rec {
|
|
||||||
version = "3.12.3";
|
|
||||||
src = fetchPypi {
|
|
||||||
pname = "pymongo";
|
|
||||||
inherit version;
|
|
||||||
hash = "sha256-ConK3ABipeU2ZN3gQ/bAlxcrjBxfAJRJAJUoL/mZWl8=";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
in buildPythonPackage rec {
|
|
||||||
pname = "pysaml2";
|
pname = "pysaml2";
|
||||||
version = "7.4.1";
|
version = "7.4.2";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.9";
|
disabled = pythonOlder "3.9";
|
||||||
|
@ -40,10 +30,22 @@ in buildPythonPackage rec {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "IdentityPython";
|
owner = "IdentityPython";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-QHAbm6u5oH3O7MEVFE+sW98raquv89KJ8gonk3Yyu/0=";
|
hash = "sha256-f8qd1Mfy32CYH9/PshfMMBviDg7OhOPlwz69bPjlYbg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(substituteAll {
|
||||||
|
src = ./hardcode-xmlsec1-path.patch;
|
||||||
|
inherit xmlsec;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# Fix failing tests on systems with 32bit time_t
|
||||||
|
sed -i 's/2999\(-.*T\)/2029\1/g' tests/*.xml
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
poetry-core
|
poetry-core
|
||||||
];
|
];
|
||||||
|
@ -63,23 +65,11 @@ in buildPythonPackage rec {
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pyasn1
|
pyasn1
|
||||||
pymongo3
|
pymongo
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
responses
|
responses
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
|
||||||
(substituteAll {
|
|
||||||
src = ./hardcode-xmlsec1-path.patch;
|
|
||||||
inherit xmlsec;
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# fix failing tests on systems with 32bit time_t
|
|
||||||
sed -i 's/2999\(-.*T\)/2029\1/g' tests/*.xml
|
|
||||||
'';
|
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# Disabled tests try to access the network
|
# Disabled tests try to access the network
|
||||||
"test_load_extern_incommon"
|
"test_load_extern_incommon"
|
||||||
|
@ -95,6 +85,7 @@ in buildPythonPackage rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python implementation of SAML Version 2 Standard";
|
description = "Python implementation of SAML Version 2 Standard";
|
||||||
homepage = "https://github.com/IdentityPython/pysaml2";
|
homepage = "https://github.com/IdentityPython/pysaml2";
|
||||||
|
changelog = "https://github.com/IdentityPython/pysaml2/blob/v${version}/CHANGELOG.md";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue