2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-12-31 18:05:32 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, boltons
|
|
|
|
, attrs
|
|
|
|
, face
|
2022-01-13 18:49:26 +01:00
|
|
|
, pytestCheckHook
|
2018-12-31 18:05:32 +01:00
|
|
|
, pyyaml
|
2022-01-13 18:49:26 +01:00
|
|
|
, pythonOlder
|
2018-12-31 18:05:32 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "glom";
|
2022-01-25 13:13:06 +01:00
|
|
|
version = "22.1.0";
|
2022-01-13 18:49:26 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-12-31 18:05:32 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-25 13:13:06 +01:00
|
|
|
hash = "sha256-FRDGWHqPnGSiRmQbcAM8vF696Z8CrSRWk2eAOOghrrU=";
|
2018-12-31 18:05:32 +01:00
|
|
|
};
|
|
|
|
|
2022-01-13 18:49:26 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
boltons
|
|
|
|
attrs
|
|
|
|
face
|
|
|
|
];
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = [
|
2022-01-13 18:49:26 +01:00
|
|
|
pytestCheckHook
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# test_cli.py checks the output of running "glom"
|
|
|
|
export PATH=$out/bin:$PATH
|
|
|
|
'';
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Test is outdated (was made for PyYAML 3.x)
|
|
|
|
"test_main_yaml_target"
|
|
|
|
];
|
2018-12-31 18:05:32 +01:00
|
|
|
|
2022-01-13 18:49:26 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"glom"
|
|
|
|
];
|
2018-12-31 18:05:32 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/mahmoud/glom";
|
2018-12-31 18:05:32 +01:00
|
|
|
description = "Restructuring data, the Python way";
|
|
|
|
longDescription = ''
|
|
|
|
glom helps pull together objects from other objects in a
|
|
|
|
declarative, dynamic, and downright simple way.
|
|
|
|
'';
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ twey ];
|
|
|
|
};
|
|
|
|
}
|