Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / cryptography / vectors.nix
blobff8bfa05ed51a756e7587c57b8d4b0c5db116698
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , cryptography
5 , setuptools
6 }:
8 buildPythonPackage rec {
9   pname = "cryptography-vectors";
10   # The test vectors must have the same version as the cryptography package
11   inherit (cryptography) version;
12   format = "pyproject";
14   src = fetchPypi {
15     pname = "cryptography_vectors";
16     inherit version;
17     hash = "sha256-gN4EUsSzT1b1UY6B69dba5BfVyiq7VIdQuQfTryKQ/s=";
18   };
20   nativeBuildInputs = [
21     setuptools
22   ];
24   # No tests included
25   doCheck = false;
27   pythonImportsCheck = [
28     "cryptography_vectors"
29   ];
31   meta = with lib; {
32     description = "Test vectors for the cryptography package";
33     homepage = "https://cryptography.io/en/latest/development/test-vectors/";
34     downloadPage = "https://github.com/pyca/cryptography/tree/master/vectors";
35     license = with licenses; [ asl20 bsd3 ];
36     maintainers = with maintainers; [ SuperSandro2000 ];
37   };