forked from mirrors/nixpkgs
python3Packages.flatten-dict: init at 0.4.2
This commit is contained in:
parent
6c3e84d2cb
commit
581861a7c0
46
pkgs/development/python-modules/flatten-dict/default.nix
Normal file
46
pkgs/development/python-modules/flatten-dict/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flatten-dict";
|
||||
version = "0.4.2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ianlini";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-uHenKoD4eLm9sMREVuV0BB/oUgh4NMiuj+IWd0hlxNQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"flatten_dict"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module for flattening and unflattening dict-like objects";
|
||||
homepage = "https://github.com/ianlini/flatten-dict";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -2961,6 +2961,8 @@ in {
|
|||
inherit (pkgs) flatbuffers;
|
||||
};
|
||||
|
||||
flatten-dict = callPackage ../development/python-modules/flatten-dict { };
|
||||
|
||||
flax = callPackage ../development/python-modules/flax { };
|
||||
|
||||
flexmock = callPackage ../development/python-modules/flexmock { };
|
||||
|
|
Loading…
Reference in a new issue