Merge branch 'master' into staging-next
This commit is contained in:
35
pkgs/development/python-modules/authlib/default.nix
Normal file
35
pkgs/development/python-modules/authlib/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytest
|
||||
, mock
|
||||
, cryptography
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.13";
|
||||
pname = "authlib";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lepture";
|
||||
repo = "authlib";
|
||||
rev = "v${version}";
|
||||
sha256 = "1nv0jbsaqr9qjn7nnl55s42iyx655k7fsj8hs69652lqnfn5y3d5";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ cryptography requests ];
|
||||
|
||||
checkInputs = [ mock pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
PYTHONPATH=$PWD:$PYTHONPATH pytest tests/{core,files}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/lepture/authlib;
|
||||
description = "The ultimate Python library in building OAuth and OpenID Connect servers. JWS,JWE,JWK,JWA,JWT included.";
|
||||
maintainers = with maintainers; [ flokli ];
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
@@ -22,8 +22,10 @@ buildPythonPackage rec {
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
# Don't know why these tests fails
|
||||
# Disable test_expression_diff, because it fails on darwin
|
||||
checkPhase = ''
|
||||
LC_ALL="en_US.UTF-8" pytest \
|
||||
--deselect tests/test_black.py::BlackTestCase::test_expression_diff \
|
||||
--deselect tests/test_black.py::BlackTestCase::test_cache_multiple_files \
|
||||
--deselect tests/test_black.py::BlackTestCase::test_failed_formatting_does_not_get_cached
|
||||
'';
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
, fetchurl
|
||||
, nose
|
||||
, six
|
||||
, setuptools
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
@@ -17,7 +18,7 @@ buildPythonPackage {
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
propagatedBuildInputs = [ six ];
|
||||
propagatedBuildInputs = [ six setuptools ];
|
||||
|
||||
checkPhase = "LC_ALL=C nosetests";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user