41 lines
800 B
Nix
41 lines
800 B
Nix
|
{ lib
|
||
|
, buildPythonPackage
|
||
|
, fetchFromGitHub
|
||
|
, poetry-core
|
||
|
, pytestCheckHook
|
||
|
, sphinxHook
|
||
|
, sphinx-rtd-theme
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "aiosql";
|
||
|
version = "8.0";
|
||
|
outputs = [ "out" "doc" ];
|
||
|
format = "pyproject";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "nackjicholson";
|
||
|
repo = "aiosql";
|
||
|
rev = "refs/tags/${version}";
|
||
|
hash = "sha256-cE89w1CbDqlkryRr3yAdSxAtWzV1+O+n41ihTwYWelE=";
|
||
|
};
|
||
|
|
||
|
sphinxRoot = "docs/source";
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
pytestCheckHook
|
||
|
sphinxHook
|
||
|
poetry-core
|
||
|
sphinx-rtd-theme
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [ "aiosql" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Simple SQL in Python";
|
||
|
homepage = "https://nackjicholson.github.io/aiosql/";
|
||
|
license = with licenses; [ bsd2 ];
|
||
|
maintainers = with maintainers; [ kaction ];
|
||
|
};
|
||
|
}
|