python3Packages.rauth: init at 0.7.2
This commit is contained in:
parent
06c84f5b48
commit
57e49fa105
54
pkgs/development/python-modules/rauth/default.nix
Normal file
54
pkgs/development/python-modules/rauth/default.nix
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, requests
|
||||||
|
, pytestCheckHook
|
||||||
|
, mock
|
||||||
|
, nose
|
||||||
|
, pycrypto
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "rauth";
|
||||||
|
version = "0.7.2";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "litl";
|
||||||
|
repo = "rauth";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-wRKZbxZCEfihOaJM8sk8438LE++KJWxdOGImpL1gHa4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
# https://github.com/litl/rauth/pull/211
|
||||||
|
name = "fix-pycrypdodome-replacement-for-pycrypto.patch";
|
||||||
|
url = "https://github.com/litl/rauth/commit/7fb3b7bf1a1869a52cf59ee3eb607d318e97265c.patch";
|
||||||
|
hash = "sha256-jiAIw+VQ2d/bkm2brqfY1RUrNGf+lsMPnoI91gGUS6o=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "rauth" ];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
mock
|
||||||
|
nose
|
||||||
|
pycrypto
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A Python library for OAuth 1.0/a, 2.0, and Ofly";
|
||||||
|
homepage = "https://github.com/litl/rauth";
|
||||||
|
changelog = "https://github.com/litl/rauth/blob/${src.rev}/CHANGELOG";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ blaggacao ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -10618,6 +10618,8 @@ self: super: with self; {
|
||||||
|
|
||||||
ratelimiter = callPackage ../development/python-modules/ratelimiter { };
|
ratelimiter = callPackage ../development/python-modules/ratelimiter { };
|
||||||
|
|
||||||
|
rauth = callPackage ../development/python-modules/rauth { };
|
||||||
|
|
||||||
raven = callPackage ../development/python-modules/raven { };
|
raven = callPackage ../development/python-modules/raven { };
|
||||||
|
|
||||||
rawkit = callPackage ../development/python-modules/rawkit { };
|
rawkit = callPackage ../development/python-modules/rawkit { };
|
||||||
|
|
Loading…
Reference in a new issue