2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 15:13:46 +00:00
nixpkgs/pkgs/development/python-modules/oauthlib/default.nix
2020-04-10 17:54:53 +01:00

34 lines
704 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, mock
, pytest
, cryptography
, blinker
, pyjwt
}:
buildPythonPackage rec {
version = "3.1.0";
pname = "oauthlib";
src = fetchPypi {
inherit pname version;
sha256 = "bee41cc35fcca6e988463cacc3bcb8a96224f470ca547e697b604cc697b2f889";
};
checkInputs = [ mock pytest ];
propagatedBuildInputs = [ cryptography blinker pyjwt ];
checkPhase = ''
py.test tests/
'';
meta = with stdenv.lib; {
homepage = "https://github.com/idan/oauthlib";
description = "A generic, spec-compliant, thorough implementation of the OAuth request-signing logic";
maintainers = with maintainers; [ prikhi ];
license = licenses.bsd3;
};
}