nixpkgs/pkgs/development/python-modules/josepy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
956 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
2018-03-20 21:25:02 +00:00
, cryptography
2022-01-15 08:01:13 +00:00
, fetchPypi
, 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";
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;
hash = "sha256-iTHa84+KTIUnSg6LfLJa3f2NHyj5+4++0FPdUa7HXck=";
2018-03-20 21:25:02 +00:00
};
propagatedBuildInputs = [
pyopenssl
cryptography
setuptools
];
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" ""
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";
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
};
}