nixpkgs-suyu/pkgs/development/python-modules/oauthlib/default.nix

34 lines
702 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
2019-02-14 16:55:36 +01:00
, fetchPypi
, mock
2019-02-14 16:55:36 +01:00
, pytest
, cryptography
, blinker
, pyjwt
}:
buildPythonPackage rec {
2019-10-24 08:47:40 +02:00
version = "3.1.0";
pname = "oauthlib";
2019-02-14 16:55:36 +01:00
src = fetchPypi {
inherit pname version;
2019-10-24 08:47:40 +02:00
sha256 = "bee41cc35fcca6e988463cacc3bcb8a96224f470ca547e697b604cc697b2f889";
};
2019-02-14 16:55:36 +01:00
checkInputs = [ mock pytest ];
propagatedBuildInputs = [ cryptography blinker pyjwt ];
2019-02-14 16:55:36 +01:00
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 ];
2019-02-14 16:55:36 +01:00
license = licenses.bsd3;
};
}