1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, nose
5, pytestCheckHook
6, pythonOlder
7, six
8, sqlalchemy
9}:
10
11buildPythonPackage rec {
12 pname = "sqlalchemy-mixins";
13 version = "2.0.5";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "absent1706";
20 repo = pname;
21 rev = "refs/tags/v${version}";
22 hash = "sha256-iJrRlV/M0Z1IOdrwWSblefm6wjvdk4/v0am+It8VeWI=";
23 };
24
25 propagatedBuildInputs = [
26 six
27 sqlalchemy
28 ];
29
30 nativeCheckInputs = [
31 nose
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [
36 "sqlalchemy_mixins"
37 ];
38
39 meta = with lib; {
40 description = "Python mixins for SQLAlchemy ORM";
41 homepage = "https://github.com/absent1706/sqlalchemy-mixins";
42 changelog = "https://github.com/absent1706/sqlalchemy-mixins/releases/tag/v${version}";
43 license = licenses.mit;
44 maintainers = with maintainers; [ fab ];
45 };
46}