mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-06 05:43:17 +00:00
python3Packages.mayim: init at 1.1.0
This commit is contained in:
parent
c4e2e52a21
commit
245ec77ccf
66
pkgs/development/python-modules/mayim/default.nix
Normal file
66
pkgs/development/python-modules/mayim/default.nix
Normal file
@ -0,0 +1,66 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, wheel
|
||||
|
||||
, psycopg
|
||||
, aiosqlite
|
||||
, asyncmy
|
||||
|
||||
# test
|
||||
, pytest-asyncio
|
||||
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mayim";
|
||||
version = "1.1.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ahopkins";
|
||||
repo = "mayim";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-nb0E9kMEJUihaCp8RnqGh0nSyDQo50eL1C4K5lBPlPQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "--cov=src --cov-append --cov-report term-missing" ""
|
||||
'';
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
postgres = [
|
||||
psycopg
|
||||
] ++ psycopg.optional-dependencies.pool;
|
||||
mysql = [
|
||||
asyncmy
|
||||
];
|
||||
sqlite = [
|
||||
aiosqlite
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pytest-asyncio
|
||||
] ++ (with passthru.optional-dependencies; [postgres mysql sqlite]);
|
||||
|
||||
pythonImportsCheck = [
|
||||
"mayim"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Asynchronous SQL hydrator";
|
||||
homepage = "https://github.com/ahopkins/mayim";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ huyngo ];
|
||||
};
|
||||
}
|
@ -6800,6 +6800,8 @@ self: super: with self; {
|
||||
inherit (self) buildPythonPackage pythonOlder pythonAtLeast pyface pygments numpy packaging vtk traitsui envisage apptools pyqt5;
|
||||
};
|
||||
|
||||
mayim = callPackage ../development/python-modules/mayim { };
|
||||
|
||||
mbddns = callPackage ../development/python-modules/mbddns { };
|
||||
|
||||
mbstrdecoder = callPackage ../development/python-modules/mbstrdecoder { };
|
||||
|
Loading…
Reference in New Issue
Block a user