summary refs log tree commit diff
path: root/pkgs/development/python-modules/pony
diff options
context:
space:
mode:
authorDima <dgoldin+github@protonmail.ch>2019-11-25 20:35:16 +0100
committerDima <dgoldin+github@protonmail.ch>2019-11-25 21:47:09 +0100
commitc68bc50e420dd6cbb25040e625fcd8a39cac0421 (patch)
treedee217a9c6ca2364d1011a76b7eb85e15bebbb6b /pkgs/development/python-modules/pony
parente0734891f891ea7c59655d668eea1d4bd20acbac (diff)
downloadnixpkgs-c68bc50e420dd6cbb25040e625fcd8a39cac0421.tar
nixpkgs-c68bc50e420dd6cbb25040e625fcd8a39cac0421.tar.gz
nixpkgs-c68bc50e420dd6cbb25040e625fcd8a39cac0421.tar.bz2
nixpkgs-c68bc50e420dd6cbb25040e625fcd8a39cac0421.tar.lz
nixpkgs-c68bc50e420dd6cbb25040e625fcd8a39cac0421.tar.xz
nixpkgs-c68bc50e420dd6cbb25040e625fcd8a39cac0421.tar.zst
nixpkgs-c68bc50e420dd6cbb25040e625fcd8a39cac0421.zip
pythonPackages.pony: init at 0.7.11
pony is an ORM library.

The main motivation for adding this package is to allow migrating
tribler to a newer version that supports python3.

Also adding myself to maintainers to not leave this one without, even
though I dont use it myself much, if anybody else feels like it fits their
interests, feel free to add yourselves.
Diffstat (limited to 'pkgs/development/python-modules/pony')
-rw-r--r--pkgs/development/python-modules/pony/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pony/default.nix b/pkgs/development/python-modules/pony/default.nix
new file mode 100644
index 00000000000..bd3c58c7dcc
--- /dev/null
+++ b/pkgs/development/python-modules/pony/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, python, buildPythonPackage, fetchPypi }:
+
+buildPythonPackage rec {
+  pname = "pony";
+  version = "0.7.11";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "05vyvsbcb99vjjs7qpbwy8j4m854w74z8di6zqsv8p9wbm38s06i";
+  };
+
+  doCheck = true;
+
+  # stripping the tests
+  postInstall = ''
+    rm -rf $out/${python.sitePackages}/pony/orm/tests
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Pony is a Python ORM with beautiful query syntax";
+    homepage = "https://ponyorm.org/";
+    maintainers = with maintainers; [ d-goldin ];
+    license = licenses.asl20;
+  };
+}