mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
fb16963fde
``` for c in ['5.3', '5.2', '5.1', '5.0', '4.9', '4.8', '4.7', '4.6', '4.5']: libpath = ctypes.util.find_library('db-%s' % c) if libpath: break else: raise ModuleNotFoundError("Cannot find dbm library", name='_dbm') ModuleNotFoundError: Cannot find dbm find_library ```
38 lines
811 B
Nix
38 lines
811 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPyPy
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "six";
|
|
version = "1.16.0";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = if isPyPy then [
|
|
# uses ctypes to find native library
|
|
"--deselect=test_six.py::test_move_items"
|
|
] else null;
|
|
|
|
pythonImportsCheck = [ "six" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/benjaminp/six/blob/${version}/CHANGES";
|
|
description = "Python 2 and 3 compatibility library";
|
|
homepage = "https://github.com/benjaminp/six";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|