mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
python310Packages.signedjson: 1.1.1 -> 1.1.4
This commit is contained in:
parent
cbe587c735
commit
5f3b40fdbe
|
@ -1,40 +1,53 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
|
||||||
, fetchpatch
|
|
||||||
, canonicaljson
|
, canonicaljson
|
||||||
, unpaddedbase64
|
, fetchPypi
|
||||||
, pynacl
|
|
||||||
, typing-extensions
|
|
||||||
, setuptools-scm
|
|
||||||
, importlib-metadata
|
, importlib-metadata
|
||||||
|
, pynacl
|
||||||
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, setuptools-scm
|
||||||
|
, typing-extensions
|
||||||
|
, unpaddedbase64
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "signedjson";
|
pname = "signedjson";
|
||||||
version = "1.1.1";
|
version = "1.1.4";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "0280f8zyycsmd7iy65bs438flm7m8ffs1kcxfbvhi8hbazkqc19m";
|
hash = "sha256-zZHFavU/Fp7wMsYunEoyktwViGaTMxjQWS40Yts9ZJI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
nativeBuildInputs = [
|
||||||
# Do not require importlib_metadata on python 3.8
|
setuptools-scm
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/matrix-org/python-signedjson/commit/c40c83f844fee3c1c7b0c5d1508f87052334b4e5.patch";
|
|
||||||
sha256 = "109f135zn9azg5h1ljw3v94kpvnzmlqz1aiknpl5hsqfa3imjca1";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools-scm ];
|
propagatedBuildInputs = [
|
||||||
propagatedBuildInputs = [ canonicaljson unpaddedbase64 pynacl typing-extensions ]
|
canonicaljson
|
||||||
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
unpaddedbase64
|
||||||
|
pynacl
|
||||||
|
] ++ lib.optionals (pythonOlder "3.8") [
|
||||||
|
importlib-metadata
|
||||||
|
typing-extensions
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"signedjson"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://pypi.org/project/signedjson/";
|
|
||||||
description = "Sign JSON with Ed25519 signatures";
|
description = "Sign JSON with Ed25519 signatures";
|
||||||
|
homepage = "https://github.com/matrix-org/python-signedjson";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue