nixpkgs-suyu/pkgs/development/python-modules/glom/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
2018-12-31 18:05:32 +01:00
, buildPythonPackage
, fetchPypi
, boltons
, attrs
, face
, pytestCheckHook
2018-12-31 18:05:32 +01:00
, pyyaml
, pythonOlder
2018-12-31 18:05:32 +01:00
}:
buildPythonPackage rec {
pname = "glom";
version = "22.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
2018-12-31 18:05:32 +01:00
src = fetchPypi {
inherit pname version;
hash = "sha256-FRDGWHqPnGSiRmQbcAM8vF696Z8CrSRWk2eAOOghrrU=";
2018-12-31 18:05:32 +01:00
};
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"
];
2018-12-31 18:05:32 +01:00
pythonImportsCheck = [
"glom"
];
2018-12-31 18:05:32 +01:00
meta = with lib; {
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 ];
};
}