Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 7 additions & 16 deletions pkgs/development/python-modules/pysaml2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@
cryptography,
defusedxml,
fetchFromGitHub,
fetchpatch,
paste,
poetry-core,
pyasn1,
pymongo,
pyopenssl,
pytestCheckHook,
python-dateutil,
pythonOlder,
pytz,
repoze-who,
requests,
responses,
Expand All @@ -26,25 +22,23 @@

buildPythonPackage rec {
pname = "pysaml2";
version = "7.5.2";
version = "7.5.4";
pyproject = true;

src = fetchFromGitHub {
owner = "IdentityPython";
repo = "pysaml2";
tag = "v${version}";
hash = "sha256-2mvAXTruZqoSBUgfT2VEAnWQXVdviG0e49y7LPK5x00=";
hash = "sha256-DDs0jWONZ78995p7bbyIyZTWHnCI93SsbECqyeo0se8=";
};

patches = [
(replaceVars ./hardcode-xmlsec1-path.patch {
inherit xmlsec;
})
# Replaces usages of deprecated/removed pyopenssl APIs
(fetchpatch {
url = "https://github.com/IdentityPython/pysaml2/pull/977/commits/930a652a240c8cd1489429a7d70cf5fa7ef1606a.patch";
hash = "sha256-kBNvGk5pwVmpW1wsIWVH9wapu6kjFavaTt4e3Llaw2c=";
})
# https://github.com/IdentityPython/pysaml2/pull/977
./replace-pyopenssl-with-cryptography.patch
];

postPatch = ''
Expand All @@ -54,18 +48,14 @@ buildPythonPackage rec {

pythonRelaxDeps = [ "xmlschema" ];

nativeBuildInputs = [
build-system = [
poetry-core
];

propagatedBuildInputs = [
dependencies = [
cryptography
defusedxml
pyopenssl
python-dateutil
pytz
requests
setuptools
xmlschema
];

Expand All @@ -81,6 +71,7 @@ buildPythonPackage rec {
pyasn1
pymongo
pytestCheckHook
python-dateutil
responses
];

Expand Down
Loading
Loading