python310Packages.pylibmc: add pythonImportsCheck
This commit is contained in:
parent
94ec8b4c6f
commit
fb6659387d
1 changed files with 27 additions and 6 deletions
|
@ -1,23 +1,44 @@
|
|||
{ buildPythonPackage, fetchPypi, lib, libmemcached, zlib, cyrus_sasl }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, cyrus_sasl
|
||||
, fetchPypi
|
||||
, libmemcached
|
||||
, zlib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.6.2";
|
||||
pname = "pylibmc";
|
||||
version = "1.6.2";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonAtLeast "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-QatJ05VAdnN0iRvvC+tSkcqXvrcEi3r3dSEGSVPATcA=";
|
||||
hash = "sha256-QatJ05VAdnN0iRvvC+tSkcqXvrcEi3r3dSEGSVPATcA=";
|
||||
};
|
||||
|
||||
buildInputs = [ libmemcached zlib cyrus_sasl ];
|
||||
setupPyBuildFlags = [ "--with-sasl2" ];
|
||||
buildInputs = [
|
||||
cyrus_sasl
|
||||
libmemcached
|
||||
zlib
|
||||
];
|
||||
|
||||
# requires an external memcached server running
|
||||
setupPyBuildFlags = [
|
||||
"--with-sasl2"
|
||||
];
|
||||
|
||||
# Requires an external memcached server running
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pylibmc"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Quick and small memcached client for Python";
|
||||
homepage = "http://sendapatch.se/projects/pylibmc/";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue