Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bed470aa5505
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5f43368eca4d
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Jun 9, 2019

  1. Copy the full SHA
    535b2d7 View commit details
  2. Merge pull request #62668 from vanschelven/python-redis-lock

    pythonPackages.python-redis-lock: init at 3.3.1
    worldofpeace authored Jun 9, 2019
    Copy the full SHA
    5f43368 View commit details
Showing with 38 additions and 0 deletions.
  1. +36 −0 pkgs/development/python-modules/python-redis-lock/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
36 changes: 36 additions & 0 deletions pkgs/development/python-modules/python-redis-lock/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -859,6 +859,8 @@ in {

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-snappy = callPackage ../development/python-modules/python-snappy {