mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python: python-redis-lock: init at 3.3.1
This commit is contained in:
parent
474566bccb
commit
535b2d71bc
2 changed files with 38 additions and 0 deletions
|
@ -0,0 +1,36 @@
|
||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, redis
|
||||||
|
, pytest
|
||||||
|
, process-tests
|
||||||
|
, pkgs
|
||||||
|
, withDjango ? false, django_redis
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "python-redis-lock";
|
||||||
|
version = "3.3.1";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "5316d473ce6ce86a774b9f9c110d84c3a9bd1a2abfda5d99e9c0c8a872a8e6d6";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [ pytest process-tests pkgs.redis ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
pytest tests/
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ redis ]
|
||||||
|
++ stdenv.lib.optional withDjango django_redis;
|
||||||
|
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = "https://github.com/ionelmc/python-redis-lock";
|
||||||
|
license = licenses.bsd2;
|
||||||
|
description = "Lock context manager implemented via redis SETNX/BLPOP";
|
||||||
|
maintainers = with maintainers; [ vanschelven ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -850,6 +850,8 @@ in {
|
||||||
|
|
||||||
python-rapidjson = callPackage ../development/python-modules/python-rapidjson { };
|
python-rapidjson = callPackage ../development/python-modules/python-rapidjson { };
|
||||||
|
|
||||||
|
python-redis-lock = callPackage ../development/python-modules/python-redis-lock { };
|
||||||
|
|
||||||
python-sql = callPackage ../development/python-modules/python-sql { };
|
python-sql = callPackage ../development/python-modules/python-sql { };
|
||||||
|
|
||||||
python-snappy = callPackage ../development/python-modules/python-snappy {
|
python-snappy = callPackage ../development/python-modules/python-snappy {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue