Merge pull request #286388 from mweinelt/orjson-3.9.13

python311Packages.orjson: 3.9.10 -> 3.9.13
This commit is contained in:
Martin Weinelt 2024-02-10 03:57:39 +01:00 committed by GitHub
commit 75cb025197
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,11 +1,17 @@
{ lib
, stdenv
, pythonOlder
, rustPlatform
, fetchFromGitHub
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
# build-system
, rustPlatform
, cffi
# native dependencies
, libiconv
# tests
, numpy
, psutil
, pytestCheckHook
@ -17,22 +23,22 @@
buildPythonPackage rec {
pname = "orjson";
version = "3.9.10";
format = "pyproject";
version = "3.9.13";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ijl";
repo = pname;
repo = "orjson";
rev = "refs/tags/${version}";
hash = "sha256-MkcuayNDt7/GcswXoFTvzuaZzhQEQV+V7OfKqgJwVIQ=";
hash = "sha256-p6nkzEHFTKCBr7Wte2wvzh1TlzwweADZON8gm2pT224=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-2eRV+oZQvsWWJ4AUTeuE0CHtTHC6jNZiX/y5uXuwvns=";
hash = "sha256-2c8XgQILhAvR8HUqoEIOfYeiV1lR9UyIJXWDuNeVZsE=";
};
maturinBuildFlags = [ "--interpreter ${python.executable}" ];