075e8c2c4f
This is almost all find-and-replace. I manually edited: * pkgs/development/python-modules/notifications-android-tv/default.nix, * pkgs/servers/home-assistant/default.nix, * pkgs/development/tools/continuous-integration/buildbot/master.nix A few files have not been changed in this PR because they would cause rebuilds. This PR should have 0 rebuilds.
50 lines
922 B
Nix
50 lines
922 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
wheel,
|
|
cython,
|
|
pytestCheckHook,
|
|
hypothesis,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "datrie";
|
|
version = "0.8.3";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-6gIa1MiovxTginHHhypiKqOZpRD5gSloJQkcfKBDboA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace '"pytest-runner", ' ""
|
|
'';
|
|
|
|
dependencies = [
|
|
setuptools
|
|
wheel
|
|
cython
|
|
];
|
|
|
|
# workaround https://github.com/pytries/datrie/issues/101
|
|
env.CFLAGS = "-Wno-error=incompatible-pointer-types";
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "datrie" ];
|
|
|
|
meta = {
|
|
description = "Super-fast, efficiently stored Trie for Python";
|
|
homepage = "https://github.com/kmike/datrie";
|
|
license = lib.licenses.lgpl21Plus;
|
|
maintainers = with lib.maintainers; [ lewo ];
|
|
};
|
|
}
|