Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / sqlalchemy-views / default.nix
blobbeafdbc2b5383b85440c9d49a11905a50a3a58bb
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , sqlalchemy
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "sqlalchemy-views";
11   version = "0.3.2";
12   format = "setuptools";
14   src = fetchFromGitHub {
15     repo = pname;
16     owner = "jklukas";
17     rev = "refs/tags/v${version}";
18     hash = "sha256-MJgikWXo3lpMsSYbb5sOSOTbJPOx5gEghW1V9jKvHKU=";
19   };
21   postPatch = ''
22     substituteInPlace tox.ini --replace '--cov=sqlalchemy_views --cov-report=term' ""
23   '';
25   nativeBuildInputs = [
26     setuptools
27   ];
29   propagatedBuildInputs = [
30     sqlalchemy
31   ];
33   nativeCheckInputs = [
34     pytestCheckHook
35   ];
37   pythonImportsCheck = [
38     "sqlalchemy_views"
39   ];
41   meta = with lib; {
42     description = "Adds CreateView and DropView constructs to SQLAlchemy";
43     homepage = "https://github.com/jklukas/sqlalchemy-views";
44     license = licenses.mit;
45     maintainers = with maintainers; [ cpcloud ];
46   };