nixos/doh-server: init
[NixPkgs.git] / pkgs / development / python-modules / cryptography / vectors.nix
blob0e404d57a6650dc7212b07ea26d986a61485de05
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   cryptography,
6   flit-core,
7 }:
9 buildPythonPackage rec {
10   pname = "cryptography-vectors";
11   # The test vectors must have the same version as the cryptography package
12   inherit (cryptography) version;
13   pyproject = true;
15   src = fetchPypi {
16     pname = "cryptography_vectors";
17     inherit version;
18     hash = "sha256-EGIodmxFuaX/0aiz4lTwVgyCHaedXNf9EToX43U1gKs=";
19   };
21   nativeBuildInputs = [ flit-core ];
23   # No tests included
24   doCheck = false;
26   pythonImportsCheck = [ "cryptography_vectors" ];
28   meta = with lib; {
29     description = "Test vectors for the cryptography package";
30     homepage = "https://cryptography.io/en/latest/development/test-vectors/";
31     downloadPage = "https://github.com/pyca/cryptography/tree/master/vectors";
32     license = with licenses; [
33       asl20
34       bsd3
35     ];
36     maintainers = with maintainers; [ SuperSandro2000 ];
37   };