summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/fastpbkdf2
diff options
context:
space:
mode:
authorJonathan Queiroz <github@johnjq.com>2018-11-03 11:41:16 -0300
committerRobert Schütz <rschuetz17@gmail.com>2018-11-03 15:41:16 +0100
commit4b095c6c05e031ef57808be954244b991cff83d6 (patch)
treed7fc9d18754d9bde6f6bf20dc3c156ba238e6901 /pkgs/development/python-modules/fastpbkdf2
parentMerge pull request #49645 from peterhoeg/p/broadlink (diff)
downloadnixpkgs-4b095c6c05e031ef57808be954244b991cff83d6.tar.gz
pythonPackages.fastpbkdf2: init at 0.2 (#47988)
Diffstat (limited to 'pkgs/development/python-modules/fastpbkdf2')
-rw-r--r--pkgs/development/python-modules/fastpbkdf2/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/fastpbkdf2/default.nix b/pkgs/development/python-modules/fastpbkdf2/default.nix
new file mode 100644
index 000000000000..63a7565cf55a
--- /dev/null
+++ b/pkgs/development/python-modules/fastpbkdf2/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchFromGitHub, buildPythonPackage
+, openssl, pytest, cffi, six }:
+
+buildPythonPackage rec {
+ pname = "fastpbkdf2";
+ version = "0.2";
+
+ # Fetching from GitHub as tests are missing in PyPI
+ src = fetchFromGitHub {
+ owner = "Ayrx";
+ repo = "python-fastpbkdf2";
+ rev = "v${version}";
+ sha256 = "1hvvlk3j28i6nswb6gy3mq7278nq0mgfnpxh1rv6jvi7xhd7qmlc";
+ };
+
+ buildInputs = [ openssl ];
+ checkInputs = [ pytest ];
+ propagatedBuildInputs = [ cffi six ];
+
+ meta = with stdenv.lib; {
+ homepage = https://github.com/Ayrx/python-fastpbkdf2;
+ description = "Python bindings for fastpbkdf2";
+ license = licenses.bsd3;
+ maintainers = with maintainers; [ jqueiroz ];
+ };
+}