2021-03-27 00:28:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2018-03-20 21:25:02 +00:00
|
|
|
, cryptography
|
2022-01-15 08:01:13 +00:00
|
|
|
, fetchPypi
|
2021-03-27 00:28:18 +00:00
|
|
|
, pyopenssl
|
2021-02-12 00:26:16 +00:00
|
|
|
, pytestCheckHook
|
2022-01-15 08:01:13 +00:00
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
2018-03-20 21:25:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "josepy";
|
2022-03-30 23:05:10 +00:00
|
|
|
version = "1.13.0";
|
2022-01-15 08:01:13 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-03-20 21:25:02 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-iTHa84+KTIUnSg6LfLJa3f2NHyj5+4++0FPdUa7HXck=";
|
2018-03-20 21:25:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyopenssl
|
|
|
|
cryptography
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-12 00:26:16 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-03-20 21:25:02 +00:00
|
|
|
|
2022-01-15 08:01:13 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pytest.ini \
|
|
|
|
--replace " --flake8 --cov-report xml --cov-report=term-missing --cov=josepy --cov-config .coveragerc" ""
|
2022-01-16 15:50:55 +00:00
|
|
|
sed -i '/flake8-ignore/d' pytest.ini
|
2022-01-15 08:01:13 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"josepy"
|
|
|
|
];
|
|
|
|
|
2018-03-20 21:25:02 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "JOSE protocol implementation in Python";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/jezdez/josepy";
|
2018-03-20 21:25:02 +00:00
|
|
|
license = licenses.asl20;
|
2022-01-15 08:01:13 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-03-20 21:25:02 +00:00
|
|
|
};
|
|
|
|
}
|