biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / keyrings-cryptfile / default.nix
blob528d4becda6b60d05a6bccbb5579cb77626baadd
2   lib,
3   argon2-cffi,
4   buildPythonPackage,
5   fetchFromGitHub,
6   setuptools,
7   keyring,
8   pycryptodome,
9   pytestCheckHook,
10   pytest-cov-stub,
11   pythonOlder,
14 buildPythonPackage rec {
15   pname = "keyrings-cryptfile";
16   version = "1.4.1";
17   pyproject = true;
19   disabled = pythonOlder "3.5";
21   src = fetchFromGitHub {
22     owner = "frispete";
23     repo = "keyrings.cryptfile";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-cDXx0s3o8hNqgzX4oNkjGhNcaUX5vi1uN2d9sdbiZwk=";
26   };
28   build-system = [ setuptools ];
30   dependencies = [
31     argon2-cffi
32     keyring
33     pycryptodome
34   ];
36   pythonImportsCheck = [ "keyrings.cryptfile" ];
38   nativeCheckInputs = [
39     pytestCheckHook
40     pytest-cov-stub
41   ];
43   disabledTests = [
44     # correct raise `ValueError`s which pytest fails to catch for some reason:
45     "test_empty_username"
46     # TestEncryptedFileKeyring::test_file raises 'ValueError: Incorrect Password' for some reason, maybe mock related:
47     "TestEncryptedFileKeyring"
48   ];
50   meta = with lib; {
51     description = "Encrypted file keyring backend";
52     mainProgram = "cryptfile-convert";
53     homepage = "https://github.com/frispete/keyrings.cryptfile";
54     changelog = "https://github.com/frispete/keyrings.cryptfile/blob/v${version}/CHANGES.md";
55     license = licenses.mit;
56     maintainers = [ maintainers.bbjubjub ];
57   };