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