From 0f8ccbf259a35da67c34f4ac5b793d6a1a818643 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 10 Oct 2018 21:21:38 -0400 Subject: [PATCH] pythonPackages.lockfile: init at 0.12.2 --- .../python-modules/lockfile/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 24 +-------------- 2 files changed, 30 insertions(+), 23 deletions(-) create mode 100644 pkgs/development/python-modules/lockfile/default.nix diff --git a/pkgs/development/python-modules/lockfile/default.nix b/pkgs/development/python-modules/lockfile/default.nix new file mode 100644 index 000000000000..15cfee67f84a --- /dev/null +++ b/pkgs/development/python-modules/lockfile/default.nix @@ -0,0 +1,29 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pbr +, nose +}: + +buildPythonPackage rec { + pname = "lockfile"; + version = "0.12.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799"; + }; + + buildInputs = [ pbr ]; + checkInputs = [ nose ]; + + checkPhase = '' + nosetests + ''; + + meta = with lib; { + homepage = https://launchpad.net/pylockfile; + description = "Platform-independent advisory file locking capability for Python applications"; + license = licenses.asl20; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 82638130220e..505874ecf6c1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6612,29 +6612,7 @@ in { llvmlite = callPackage ../development/python-modules/llvmlite { llvm = pkgs.llvm_6; }; - lockfile = buildPythonPackage rec { - pname = "lockfile"; - version = "0.12.2"; - name = "${pname}-${version}"; - src = pkgs.fetchurl { - url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; - sha256 = "6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799"; - }; - - buildInputs = with self; [ - pbr nose - ]; - - checkPhase = '' - nosetests - ''; - - meta = { - homepage = https://launchpad.net/pylockfile; - description = "Platform-independent advisory file locking capability for Python applications"; - license = licenses.asl20; - }; - }; + lockfile = callPackage ../development/python-modules/lockfile { }; logilab_common = callPackage ../development/python-modules/logilab/common.nix {};