1{ stdenv, python, buildPythonPackage, fetchPypi }:
2
3buildPythonPackage rec {
4 pname = "pony";
5 version = "0.7.11";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "05vyvsbcb99vjjs7qpbwy8j4m854w74z8di6zqsv8p9wbm38s06i";
10 };
11
12 doCheck = true;
13
14 # stripping the tests
15 postInstall = ''
16 rm -rf $out/${python.sitePackages}/pony/orm/tests
17 '';
18
19 meta = with stdenv.lib; {
20 description = "Pony is a Python ORM with beautiful query syntax";
21 homepage = "https://ponyorm.org/";
22 maintainers = with maintainers; [ d-goldin xvapx ];
23 license = licenses.asl20;
24 };
25}