depot/third_party/nixpkgs/pkgs/development/python-modules/flatten-dict/default.nix
Default email 4cb23072fc Project import generated by Copybara.
GitOrigin-RevId: 6d8215281b2f87a5af9ed7425a26ac575da0438f
2022-01-20 00:45:15 +01:00

46 lines
808 B
Nix

{ 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 ];
};
}