summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/datrie
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-07-13 17:05:45 +0800
committerNick Cao <nickcao@nichi.co>2023-07-13 17:06:47 +0800
commit296e58b815f70413c3969b5fa33d3f4e86c75f54 (patch)
treec070b689bbc08073e1cc45120aa4902deeafe1ca /pkgs/development/python-modules/datrie
parentMerge pull request #243199 from adisbladis/nixos-lemmy-config (diff)
downloadnixpkgs-296e58b815f70413c3969b5fa33d3f4e86c75f54.tar.gz
python3Packages.datrie: set format
Diffstat (limited to 'pkgs/development/python-modules/datrie')
-rw-r--r--pkgs/development/python-modules/datrie/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/datrie/default.nix b/pkgs/development/python-modules/datrie/default.nix
index 920e31c7f11e..414474af6ccb 100644
--- a/pkgs/development/python-modules/datrie/default.nix
+++ b/pkgs/development/python-modules/datrie/default.nix
@@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
+, setuptools
, cython
, pytestCheckHook
, hypothesis
@@ -9,6 +10,7 @@
buildPythonPackage rec {
pname = "datrie";
version = "0.8.2";
+ format = "pyproject";
src = fetchPypi {
inherit pname version;
@@ -16,17 +18,17 @@ buildPythonPackage rec {
};
nativeBuildInputs = [
+ setuptools
cython
];
- buildInputs = [
- hypothesis
+ nativeCheckInputs = [
pytestCheckHook
];
- postPatch = ''
- substituteInPlace setup.py --replace '"pytest-runner", ' ""
- '';
+ checkInputs = [
+ hypothesis
+ ];
pythonImportsCheck = [ "datrie" ];