nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 51 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 defusedxml, 6 django, 7 pysaml2, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "djangosaml2"; 13 version = "1.11.1-1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "IdentityPython"; 18 repo = "djangosaml2"; 19 tag = "v${version}"; 20 hash = "sha256-f7VgysfGpwt4opmXXaigRsOBS506XB/jZV1zRiYwZig="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ 26 django 27 defusedxml 28 pysaml2 29 ]; 30 31 # Falsely complains that 'defusedxml>=0.4.1 not satisfied by version 0.8.0rc2' 32 pythonRelaxDeps = [ "defusedxml" ]; 33 34 pythonImportsCheck = [ "djangosaml2" ]; 35 36 checkPhase = '' 37 runHook preCheck 38 39 python tests/run_tests.py 40 41 runHook postCheck 42 ''; 43 44 meta = { 45 description = "Django SAML2 Service Provider based on pySAML2"; 46 homepage = "https://github.com/IdentityPython/djangosaml2"; 47 changelog = "https://github.com/IdentityPython/djangosaml2/releases/tag/${src.tag}"; 48 license = lib.licenses.asl20; 49 maintainers = with lib.maintainers; [ melvyn2 ]; 50 }; 51}