aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/preshed
diff options
context:
space:
mode:
authorSasha Delly <shura.sdll@gmail.com>2017-05-15 10:06:47 +0000
committerFrederik Rietdijk <fridh@fridh.nl>2017-08-13 22:41:30 +0200
commitf1ce370b8e91dbc0e255456610a9f1b292114b40 (patch)
treed29f6c761652874e306bdc40f0e32876e6df762f /pkgs/development/python-modules/preshed
parent3fe916dd4af296657a193c1dfef5d31deccca364 (diff)
preshed: init at 1.0.0
Diffstat (limited to 'pkgs/development/python-modules/preshed')
-rw-r--r--pkgs/development/python-modules/preshed/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/preshed/default.nix b/pkgs/development/python-modules/preshed/default.nix
new file mode 100644
index 00000000000..d82408e620e
--- /dev/null
+++ b/pkgs/development/python-modules/preshed/default.nix
@@ -0,0 +1,37 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, pytest
+, cython
+, cymem
+, python
+}:
+buildPythonPackage rec {
+ name = "${pname}-${version}";
+ pname = "preshed";
+ version = "1.0.0";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "1pdl4p2d32ficfh18xdkgsj6ajzdxc6mxhhf84z0wq1l8viskcx6";
+ };
+
+ propagatedBuildInputs = [
+ cython
+ cymem
+ ];
+ buildInputs = [
+ pytest
+ ];
+
+ checkPhase = ''
+ ${python.interpreter} setup.py test
+ '';
+
+ meta = with stdenv.lib; {
+ description = "Cython hash tables that assume keys are pre-hashed";
+ homepage = https://github.com/explosion/preshed;
+ license = licenses.mit;
+ maintainers = with maintainers; [ sdll ];
+ };
+}