mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-15 04:20:23 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
51 lines
867 B
Nix
51 lines
867 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, ecdsa
|
|
, rsa
|
|
, pycrypto
|
|
, pyasn1
|
|
, pycryptodome
|
|
, cryptography
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-jose";
|
|
version = "3.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mpdavis";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-6VGC6M5oyGCOiXcYp6mpyhL+JlcYZKIqOQU9Sm/TkKM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
ecdsa
|
|
pyasn1
|
|
pycrypto
|
|
pycryptodome
|
|
rsa
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace '"pytest-runner",' ""
|
|
'';
|
|
|
|
pythonImportsCheck = [ "jose" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mpdavis/python-jose";
|
|
description = "A JOSE implementation in Python";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jhhuh ];
|
|
};
|
|
}
|