Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 39 lines 954 B view raw
1{ stdenv, buildPythonPackage, fetchFromGitHub 2, future, six, ecdsa, rsa 3, pycrypto, pytest, pytestcov, pytestrunner, cryptography 4}: 5 6buildPythonPackage rec { 7 pname = "python-jose"; 8 version = "3.0.1"; 9 10 src = fetchFromGitHub { 11 owner = "mpdavis"; 12 repo = "python-jose"; 13 rev = version; 14 sha256 = "1ahq4m86z504bnlk9z473r7r3dprg5m39900rld797hbczdhqa4f"; 15 }; 16 17 checkInputs = [ 18 pycrypto 19 pytest 20 pytestcov 21 pytestrunner 22 cryptography # optional dependency, but needed in tests 23 ]; 24 checkPhase = '' 25 py.test 26 ''; 27 28 # https://github.com/mpdavis/python-jose/issues/149 29 PYTEST_ADDOPTS = "-k 'not test_invalid_claims_json and not test_invalid_claims'"; 30 31 propagatedBuildInputs = [ future six ecdsa rsa ]; 32 33 meta = with stdenv.lib; { 34 homepage = https://github.com/mpdavis/python-jose; 35 description = "A JOSE implementation in Python"; 36 license = licenses.mit; 37 maintainers = [ maintainers.jhhuh ]; 38 }; 39}