1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00
nixpkgs/pkgs/development/python-modules/ldappool/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

31 lines
753 B
Nix

{ lib, buildPythonPackage, fetchPypi
, pbr, ldap, prettytable, fixtures, testresources, testtools }:
buildPythonPackage rec {
pname = "ldappool";
version = "2.4.1";
src = fetchPypi {
pname = "ldappool";
inherit version;
sha256 = "23edef09cba4b1ae764f1ddada828d8e39d72cf32a457e599f5a70064310ea00";
};
postPatch = ''
# Tests run without most of the dependencies
echo "" > test-requirements.txt
'';
nativeBuildInputs = [ pbr ];
propagatedBuildInputs = [ ldap prettytable ];
checkInputs = [ fixtures testresources testtools ];
meta = with lib; {
description = "A simple connector pool for python-ldap";
homepage = https://git.openstack.org/cgit/openstack/ldappool;
license = licenses.mpl20;
};
}