blob: beafdbc2b5383b85440c9d49a11905a50a3a58bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, sqlalchemy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "sqlalchemy-views";
version = "0.3.2";
format = "setuptools";
src = fetchFromGitHub {
repo = pname;
owner = "jklukas";
rev = "refs/tags/v${version}";
hash = "sha256-MJgikWXo3lpMsSYbb5sOSOTbJPOx5gEghW1V9jKvHKU=";
};
postPatch = ''
substituteInPlace tox.ini --replace '--cov=sqlalchemy_views --cov-report=term' ""
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
sqlalchemy
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"sqlalchemy_views"
];
meta = with lib; {
description = "Adds CreateView and DropView constructs to SQLAlchemy";
homepage = "https://github.com/jklukas/sqlalchemy-views";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
};
}
|