mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 01:04:25 +00:00
python310Packages.python3-saml: add changelog to meta
- disable on unsupported Python releases
This commit is contained in:
parent
f3009dd57d
commit
3bc282bec2
@ -1,33 +1,45 @@
|
||||
{ lib, fetchFromGitHub, buildPythonPackage, isPy3k,
|
||||
isodate, lxml, xmlsec, freezegun }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, freezegun
|
||||
, isodate
|
||||
, lxml
|
||||
, pythonOlder
|
||||
, xmlsec
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python3-saml";
|
||||
version = "1.15.0";
|
||||
disabled = !isPy3k;
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "onelogin";
|
||||
repo = "python3-saml";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-xPPR2z3h8RpoAROpKpu9ZoDxGq5Stm9wQVt4Stj/6fg=";
|
||||
hash = "sha256-xPPR2z3h8RpoAROpKpu9ZoDxGq5Stm9wQVt4Stj/6fg=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "lxml<4.7.1" "lxml<5"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
isodate lxml xmlsec
|
||||
isodate
|
||||
lxml
|
||||
xmlsec
|
||||
];
|
||||
|
||||
checkInputs = [ freezegun ];
|
||||
pythonImportsCheck = [ "onelogin.saml2" ];
|
||||
checkInputs = [
|
||||
freezegun
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"onelogin.saml2"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "OneLogin's SAML Python Toolkit for Python 3";
|
||||
description = "OneLogin's SAML Python Toolkit";
|
||||
homepage = "https://github.com/onelogin/python3-saml";
|
||||
changelog = "https://github.com/SAML-Toolkits/python3-saml/blob/v${version}/changelog.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ zhaofengli ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user