Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, fetchFromGitHub, buildPythonPackage 2, openssl, pytest, cffi, six }: 3 4buildPythonPackage rec { 5 pname = "fastpbkdf2"; 6 version = "0.2"; 7 8 # Fetching from GitHub as tests are missing in PyPI 9 src = fetchFromGitHub { 10 owner = "Ayrx"; 11 repo = "python-fastpbkdf2"; 12 rev = "v${version}"; 13 sha256 = "1hvvlk3j28i6nswb6gy3mq7278nq0mgfnpxh1rv6jvi7xhd7qmlc"; 14 }; 15 16 buildInputs = [ openssl ]; 17 checkInputs = [ pytest ]; 18 propagatedBuildInputs = [ cffi six ]; 19 20 meta = with stdenv.lib; { 21 homepage = "https://github.com/Ayrx/python-fastpbkdf2"; 22 description = "Python bindings for fastpbkdf2"; 23 license = licenses.bsd3; 24 maintainers = with maintainers; [ jqueiroz ]; 25 }; 26}