2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
2023-10-09 19:29:22 +00:00
|
|
|
, argon2-cffi
|
2021-05-20 23:08:51 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, keyring
|
|
|
|
, pycryptodome
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-10-09 19:29:22 +00:00
|
|
|
pname = "keyrings-cryptfile";
|
|
|
|
version = "1.3.9";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-10-09 19:29:22 +00:00
|
|
|
pname = "keyrings.cryptfile";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-fCpFPKuZhUJrjCH3rVSlfkn/joGboY4INAvYgBrPAJE=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "-s --cov=keyrings/cryptfile" ""
|
|
|
|
'';
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
argon2-cffi
|
2021-05-20 23:08:51 +00:00
|
|
|
keyring
|
|
|
|
pycryptodome
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"keyrings.cryptfile"
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
2023-10-09 19:29:22 +00:00
|
|
|
# FileNotFoundError: [Errno 2] No such file or directory: '/build/...
|
|
|
|
"test_versions"
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Encrypted file keyring backend";
|
|
|
|
homepage = "https://github.com/frispete/keyrings.cryptfile";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/frispete/keyrings.cryptfile/blob/v${version}/CHANGES.md";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.mit;
|
2024-02-29 20:09:43 +00:00
|
|
|
maintainers = [ maintainers.bbjubjub ];
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|