depot/third_party/nixpkgs/pkgs/development/python-modules/apsw/default.nix
Default email 7d542a9f98 Project import generated by Copybara.
GitOrigin-RevId: b72b8b94cf0c012b0252a9100a636cad69696666
2022-12-02 08:20:57 +00:00

44 lines
921 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, sqlite
, isPyPy
, python
}:
buildPythonPackage rec {
pname = "apsw";
version = "3.40.0.0";
format = "setuptools";
disabled = isPyPy;
src = fetchFromGitHub {
owner = "rogerbinns";
repo = "apsw";
rev = "refs/tags/${version}";
hash = "sha256-Bi2pW+8vFLcYnatlqsfnwqfCpV2cjannYaTqgIlfNNM=";
};
buildInputs = [
sqlite
];
# Project uses custom test setup to exclude some tests by default, so using pytest
# requires more maintenance
# https://github.com/rogerbinns/apsw/issues/335
checkPhase = ''
${python.interpreter} setup.py test
'';
pythonImportsCheck = [
"apsw"
];
meta = with lib; {
description = "A Python wrapper for the SQLite embedded relational database engine";
homepage = "https://github.com/rogerbinns/apsw";
license = licenses.zlib;
maintainers = with maintainers; [ gador ];
};
}