mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, boltons
|
|
, attrs
|
|
, face
|
|
, pytestCheckHook
|
|
, pyyaml
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "glom";
|
|
version = "22.1.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-FRDGWHqPnGSiRmQbcAM8vF696Z8CrSRWk2eAOOghrrU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
boltons
|
|
attrs
|
|
face
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"glom"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mahmoud/glom";
|
|
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 ];
|
|
};
|
|
}
|