nixpkgs/pkgs/development/python-modules/json-tricks/default.nix

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

34 lines
718 B
Nix
Raw Normal View History

2021-12-21 11:56:54 -05:00
{ lib
, fetchFromGitHub
, buildPythonPackage
, pythonOlder
, pytestCheckHook
, numpy
, pandas
, pytz
}:
buildPythonPackage rec {
pname = "json-tricks";
version = "3.17.2";
2021-12-21 11:56:54 -05:00
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "mverleg";
repo = "pyjson_tricks";
rev = "v${version}";
sha256 = "sha256-7AT4h+f3FDTITfVZyLTimZlDGuAxKwe0kFYBEFGv51s=";
2021-12-21 11:56:54 -05:00
};
nativeCheckInputs = [ numpy pandas pytz pytestCheckHook ];
2021-12-21 11:56:54 -05:00
pythonImportsCheck = [ "json_tricks" ];
meta = with lib; {
description = "Extra features for Python JSON handling";
homepage = "https://github.com/mverleg/pyjson_tricks";
license = licenses.bsd3;
maintainers = with maintainers; [ bcdarwin ];
};
}