python310Packages.camel-converter: init at 3.0.0
This commit is contained in:
parent
90b7e76b07
commit
b9f6e210fa
2 changed files with 56 additions and 0 deletions
54
pkgs/development/python-modules/camel-converter/default.nix
Normal file
54
pkgs/development/python-modules/camel-converter/default.nix
Normal file
|
@ -0,0 +1,54 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pydantic
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "camel-converter";
|
||||
version = "3.0.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sanders41";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-SUuSaQU6o2OtjDNrDcO3nS0EZH2ammEkP7AEp4H5ysI=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "--cov=camel_converter --cov-report term-missing" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
pydantic = [
|
||||
pydantic
|
||||
];
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
] ++ passthru.optional-dependencies.pydantic;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"camel_converter"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Client for the Meilisearch API";
|
||||
homepage = "https://github.com/sanders41/camel-converter";
|
||||
changelog = "https://github.com/sanders41/camel-converter/releases/tag/v${version}";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -1516,6 +1516,8 @@ self: super: with self; {
|
|||
|
||||
calmjs-parse = callPackage ../development/python-modules/calmjs-parse { };
|
||||
|
||||
camel-converter = callPackage ../development/python-modules/camel-converter { };
|
||||
|
||||
can = callPackage ../development/python-modules/can { };
|
||||
|
||||
canmatrix = callPackage ../development/python-modules/canmatrix { };
|
||||
|
|
Loading…
Reference in a new issue