mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
python3Packages.notion-client: init at 2.0.0
This commit is contained in:
parent
171ac46b9f
commit
fda7b23b32
51
pkgs/development/python-modules/notion-client/default.nix
Normal file
51
pkgs/development/python-modules/notion-client/default.nix
Normal file
@ -0,0 +1,51 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, pytestCheckHook
|
||||
, anyio
|
||||
, httpx
|
||||
, pytest-asyncio
|
||||
, pytest-vcr
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "notion-client";
|
||||
version = "2.0.0";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ramnes";
|
||||
repo = "notion-sdk-py";
|
||||
rev = version;
|
||||
sha256 = "sha256-zfG1OgH/2ytDUC+ogIY9/nP+xkgjiMt9+HVcWEMXoj8=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
httpx
|
||||
];
|
||||
|
||||
# disable coverage options as they don't provide us value, and they break the defalt pytestCheckHook
|
||||
preCheck = ''
|
||||
sed -i '/addopts/d' ./setup.cfg
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
anyio
|
||||
pytest-asyncio
|
||||
pytest-vcr
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"notion_client"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python client for the official Notion API";
|
||||
homepage = "https://github.com/ramnes/notion-sdk-py";
|
||||
changelog = "https://github.com/ramnes/notion-sdk-py/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ jpetrucciani ];
|
||||
};
|
||||
}
|
@ -6331,6 +6331,8 @@ self: super: with self; {
|
||||
|
||||
notify2 = callPackage ../development/python-modules/notify2 { };
|
||||
|
||||
notion-client = callPackage ../development/python-modules/notion-client { };
|
||||
|
||||
notmuch = callPackage ../development/python-modules/notmuch {
|
||||
inherit (pkgs) notmuch;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user