Skip to content
Permalink
Browse files

pythonPackages.pysaml2: run tests

  • Loading branch information...
dotlambda committed Jan 11, 2019
1 parent 0cacf9a commit a6a36b7afdbafe2f90adfcb67c0939edb59bbd4c
Showing with 15 additions and 5 deletions.
  1. +15 −5 pkgs/development/python-modules/pysaml2/default.nix
@@ -1,21 +1,31 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, cryptography, defusedxml, future, pyopenssl, dateutil, pytz, requests, six
, mock, pyasn1, pymongo, pytest, responses, xmlsec
}:

buildPythonPackage rec {
pname = "pysaml2";
version = "4.6.5";

src = fetchPypi {
inherit pname version;
sha256 = "0379d6d91b3573c4b2eff49c2658d472b47849096b6a816a3b67ec2f3054ed71";
src = fetchFromGitHub {
owner = "IdentityPython";
repo = pname;
rev = "v${version}";
sha256 = "0xlbr52vzx1j9sg65jhqv01vp4a49afjy03lc2zb0ggx0xxzngvb";
};

propagatedBuildInputs = [ cryptography defusedxml future pyopenssl dateutil pytz requests six ];

doCheck = false;
checkInputs = [ mock pyasn1 pymongo pytest responses xmlsec ];

# Disabled tests try to access the network
checkPhase = ''
py.test -k "not test_load_extern_incommon \
and not test_load_remote_encoding \
and not test_load_external"
'';

meta = with stdenv.lib; {
homepage = "https://github.com/rohe/pysaml2";

0 comments on commit a6a36b7

Please sign in to comment.
You can’t perform that action at this time.