nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7 six,
8}:
9
10buildPythonPackage rec {
11 pname = "flatten-dict";
12 version = "0.4.2";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "ianlini";
17 repo = "flatten-dict";
18 rev = version;
19 hash = "sha256-uHenKoD4eLm9sMREVuV0BB/oUgh4NMiuj+IWd0hlxNQ=";
20 };
21
22 nativeBuildInputs = [ poetry-core ];
23
24 propagatedBuildInputs = [ six ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "flatten_dict" ];
29
30 meta = {
31 description = "Module for flattening and unflattening dict-like objects";
32 homepage = "https://github.com/ianlini/flatten-dict";
33 license = lib.licenses.mit;
34 maintainers = with lib.maintainers; [ fab ];
35 };
36}