1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, databases
5, typesystem
6, aiosqlite
7, pytest
8, pytestcov
9}:
10
11buildPythonPackage rec {
12 pname = "orm";
13 version = "0.1.5";
14
15 src = fetchFromGitHub {
16 owner = "encode";
17 repo = "orm";
18 rev = version;
19 sha256 = "1g70cr0559iyqfzidwh6n2qq6d4dcnrr4sg0jkn1s4qzka828mj7";
20 };
21
22 propagatedBuildInputs = [
23 databases
24 typesystem
25 ];
26
27 checkInputs = [
28 aiosqlite
29 pytest
30 pytestcov
31 ];
32
33 checkPhase = ''
34 PYTHONPATH=$PYTHONPATH:. pytest
35 '';
36
37 meta = with lib; {
38 description = "An async ORM";
39 homepage = https://github.com/encode/orm;
40 license = licenses.bsd3;
41 maintainers = [ maintainers.costrouc ];
42 };
43}