diff options
Diffstat (limited to 'pkgs/development/python-modules/json-stream-rs-tokenizer/default.nix')
-rw-r--r-- | pkgs/development/python-modules/json-stream-rs-tokenizer/default.nix | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/pkgs/development/python-modules/json-stream-rs-tokenizer/default.nix b/pkgs/development/python-modules/json-stream-rs-tokenizer/default.nix index 9609d68c69614..7187d7353fd09 100644 --- a/pkgs/development/python-modules/json-stream-rs-tokenizer/default.nix +++ b/pkgs/development/python-modules/json-stream-rs-tokenizer/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, cargo -, darwin -, fetchFromGitHub -, json-stream -, json-stream-rs-tokenizer -, pythonOlder -, rustc -, rustPlatform -, setuptools -, setuptools-rust -, wheel +{ + lib, + stdenv, + buildPythonPackage, + cargo, + libiconv, + fetchFromGitHub, + json-stream, + json-stream-rs-tokenizer, + pythonOlder, + rustc, + rustPlatform, + setuptools, + setuptools-rust, + wheel, }: buildPythonPackage rec { @@ -44,28 +45,24 @@ buildPythonPackage rec { wheel ]; - buildInputs = lib.optionals stdenv.isDarwin [ - darwin.libiconv - ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; # Tests depend on json-stream, which depends on this package. # To avoid infinite recursion, we only enable tests when building passthru.tests. doCheck = false; - checkInputs = [ - json-stream - ]; + checkInputs = [ json-stream ]; - pythonImportsCheck = [ - "json_stream_rs_tokenizer" - ]; + pythonImportsCheck = [ "json_stream_rs_tokenizer" ]; passthru.tests = { - runTests = json-stream-rs-tokenizer.overrideAttrs (_: { doCheck = true; }); + runTests = json-stream-rs-tokenizer.overrideAttrs (_: { + doCheck = true; + }); }; meta = with lib; { - description = "A faster tokenizer for the json-stream Python library"; + description = "Faster tokenizer for the json-stream Python library"; homepage = "https://github.com/smheidrich/py-json-stream-rs-tokenizer"; license = licenses.mit; maintainers = with maintainers; [ winter ]; |