My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/python-jose/default.nix

50 lines
861 B

{ 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
];
checkInputs = [
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 ];
};
}