mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-14 16:40:09 +03:00
python3Packages.josepy: cleanup
This commit is contained in:
parent
93acc1fd8d
commit
46eef09d3c
@ -1,28 +1,25 @@
|
||||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, cryptography
|
||||
, fetchPypi
|
||||
, pyopenssl
|
||||
, setuptools
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "josepy";
|
||||
version = "1.12.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "267004a64f08c016cd54b7aaf7c323fa3ef3679fb62f4b086cd56448d0fecb25";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# remove coverage flags
|
||||
sed -i '/addopts/d' pytest.ini
|
||||
sed -i '/flake8-ignore/d' pytest.ini
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyopenssl
|
||||
cryptography
|
||||
@ -30,15 +27,22 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pytest.ini \
|
||||
--replace " --flake8 --cov-report xml --cov-report=term-missing --cov=josepy --cov-config .coveragerc" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"josepy"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "JOSE protocol implementation in Python";
|
||||
homepage = "https://github.com/jezdez/josepy";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ];
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user