python3Packages.pyhumps: init at 3.5.0
This commit is contained in:
parent
e9a32bb715
commit
fb0ddd271e
47
pkgs/development/python-modules/pyhumps/default.nix
Normal file
47
pkgs/development/python-modules/pyhumps/default.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyhumps";
|
||||
version = "3.5.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nficano";
|
||||
repo = "humps";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-dnNtx0VTD2e89yXMz0+acDhOaLBSkAA7n2io6qypN5E=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/nficano/humps/pull/240
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'version = "3.0.2"' 'version = "${version}"'
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"humps"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module to convert strings (and dictionary keys) between snake case, camel case and pascal case";
|
||||
homepage = "https://github.com/nficano/humps";
|
||||
license = with licenses; [ unlicense ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -6104,6 +6104,8 @@ in {
|
||||
|
||||
pyhiveapi = callPackage ../development/python-modules/pyhiveapi { };
|
||||
|
||||
pyhumps = callPackage ../development/python-modules/pyhumps { };
|
||||
|
||||
pyisy = callPackage ../development/python-modules/pyisy { };
|
||||
|
||||
pykrakenapi = callPackage ../development/python-modules/pykrakenapi { };
|
||||
|
Loading…
Reference in New Issue
Block a user