mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
python310Packages.python-fx: init at 0.2.0
This commit is contained in:
parent
0978541585
commit
e04006869b
100
pkgs/development/python-modules/python-fx/default.nix
Normal file
100
pkgs/development/python-modules/python-fx/default.nix
Normal file
@ -0,0 +1,100 @@
|
||||
{ lib
|
||||
, antlr4-python3-runtime
|
||||
, asciimatics
|
||||
, buildPythonPackage
|
||||
, click
|
||||
, dacite
|
||||
, decorator
|
||||
, fetchFromGitHub
|
||||
, future
|
||||
, first
|
||||
, jsonpath-ng
|
||||
, loguru
|
||||
, overrides
|
||||
, pillow
|
||||
, ply
|
||||
, pyfiglet
|
||||
, pyperclip
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, antlr4
|
||||
, pythonRelaxDepsHook
|
||||
, pyyaml
|
||||
, setuptools
|
||||
, six
|
||||
, urwid
|
||||
, parameterized
|
||||
, wcwidth
|
||||
, yamale
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-fx";
|
||||
version = "0.2.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cielong";
|
||||
repo = "pyfx";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-nRMeYL0JGvCtUQBUMXUsZ4+F2KX+x/CbZ61sAidT9so=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
rm src/pyfx/model/common/jsonpath/*.{g4,interp,tokens}
|
||||
antlr -Dlanguage=Python3 -visitor -o src/pyfx/model/common/jsonpath/ *.g4
|
||||
'';
|
||||
|
||||
pythonRelaxDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
antlr4
|
||||
pythonRelaxDepsHook
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
antlr4-python3-runtime
|
||||
asciimatics
|
||||
click
|
||||
dacite
|
||||
decorator
|
||||
first
|
||||
future
|
||||
jsonpath-ng
|
||||
loguru
|
||||
overrides
|
||||
pillow
|
||||
ply
|
||||
pyfiglet
|
||||
pyperclip
|
||||
pyyaml
|
||||
six
|
||||
urwid
|
||||
wcwidth
|
||||
yamale
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
parameterized
|
||||
];
|
||||
|
||||
# antlr4 issue prevents us from running the tests
|
||||
# https://github.com/antlr/antlr4/issues/4041
|
||||
doCheck = false;
|
||||
|
||||
# pythonImportsCheck = [
|
||||
# "pyfx"
|
||||
# ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module to view JSON in a TUI";
|
||||
homepage = "https://github.com/cielong/pyfx";
|
||||
changelog = "https://github.com/cielong/pyfx/releases/tag/v${version}";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -7300,6 +7300,8 @@ self: super: with self; {
|
||||
|
||||
python-fullykiosk = callPackage ../development/python-modules/python-fullykiosk { };
|
||||
|
||||
python-fx = callPackage ../development/python-modules/python-fx { };
|
||||
|
||||
python-glanceclient = callPackage ../development/python-modules/python-glanceclient { };
|
||||
|
||||
python-google-nest = callPackage ../development/python-modules/python-google-nest { };
|
||||
|
Loading…
Reference in New Issue
Block a user