nixpkgs/pkgs/development/python-modules/aiosql/default.nix
2023-05-12 23:06:54 -04:00

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 ];
};
}