mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
Merge pull request #286388 from mweinelt/orjson-3.9.13
python311Packages.orjson: 3.9.10 -> 3.9.13
This commit is contained in:
commit
75cb025197
@ -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}" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user