Merge pull request #119703 from mweinelt/python/deepdiff
This commit is contained in:
commit
c144f4734a
60
pkgs/development/python-modules/clevercsv/default.nix
Normal file
60
pkgs/development/python-modules/clevercsv/default.nix
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, chardet
|
||||||
|
, cleo
|
||||||
|
, clikit
|
||||||
|
, pandas
|
||||||
|
, regex
|
||||||
|
, tabview
|
||||||
|
, python
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "clevercsv";
|
||||||
|
version = "0.6.7";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "alan-turing-institute";
|
||||||
|
repo = "CleverCSV";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0j3959bji48pkp0vnk7yls5l75ywjl77jdkvzs62n5mi5lky88p9";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
chardet
|
||||||
|
cleo
|
||||||
|
clikit
|
||||||
|
pandas
|
||||||
|
regex
|
||||||
|
tabview
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"clevercsv"
|
||||||
|
"clevercsv.cparser"
|
||||||
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
# by linking the installed version the tests also have access to compiled native libraries
|
||||||
|
rm -r clevercsv
|
||||||
|
ln -s $out/${python.sitePackages}/clevercsv/ clevercsv
|
||||||
|
# their ci only runs unit tests, there are also integration and fuzzing tests
|
||||||
|
${python.interpreter} -m unittest discover -v -f -s ./tests/test_unit
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "CleverCSV is a Python package for handling messy CSV files";
|
||||||
|
longDescription = ''
|
||||||
|
CleverCSV is a Python package for handling messy CSV files. It provides
|
||||||
|
a drop-in replacement for the builtin CSV module with improved dialect
|
||||||
|
detection, and comes with a handy command line application for working
|
||||||
|
with CSV files.
|
||||||
|
'';
|
||||||
|
homepage = "https://github.com/alan-turing-institute/CleverCSV";
|
||||||
|
changelog = "https://github.com/alan-turing-institute/CleverCSV/blob/master/CHANGELOG.md";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ hexa ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,34 +1,43 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, mock
|
, click
|
||||||
, jsonpickle
|
|
||||||
, mmh3
|
|
||||||
, ordered-set
|
, ordered-set
|
||||||
|
, clevercsv
|
||||||
|
, jsonpickle
|
||||||
, numpy
|
, numpy
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pyyaml
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "deepdiff";
|
pname = "deepdiff";
|
||||||
version = "5.2.3";
|
version = "5.3.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
# pypi source does not contain all fixtures required for tests
|
||||||
inherit pname version;
|
src = fetchFromGitHub {
|
||||||
sha256 = "ae2cb98353309f93fbfdda4d77adb08fb303314d836bb6eac3d02ed71a10b40e";
|
owner = "seperman";
|
||||||
|
repo = "deepdiff";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1izw2qpd93nj948zakamjn7q7dlmmr7sapg0c65hxvs0nmij8sl4";
|
||||||
};
|
};
|
||||||
|
|
||||||
# # Extra packages (may not be necessary)
|
propagatedBuildInputs = [
|
||||||
checkInputs = [
|
click
|
||||||
mock
|
ordered-set
|
||||||
numpy
|
|
||||||
pytestCheckHook
|
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
pythonImportsCheck = [
|
||||||
|
"deepdiff"
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
clevercsv
|
||||||
jsonpickle
|
jsonpickle
|
||||||
mmh3
|
numpy
|
||||||
ordered-set
|
pytestCheckHook
|
||||||
|
pyyaml
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
31
pkgs/development/python-modules/tabview/default.nix
Normal file
31
pkgs/development/python-modules/tabview/default.nix
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, python
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "tabview";
|
||||||
|
version = "1.4.4";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
# newest release only available as wheel on pypi
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "TabViewer";
|
||||||
|
repo = "tabview";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1d1l8fhdn3w2zg7wakvlmjmgjh9lh9h5fal1clgyiqmhfix4cn4m";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
${python.interpreter} -m unittest discover
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python curses command line CSV and tabular data viewer";
|
||||||
|
homepage = "https://github.com/TabViewer/tabview";
|
||||||
|
changelog = "https://github.com/TabViewer/tabview/blob/main/CHANGELOG.rst";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ hexa ];
|
||||||
|
};
|
||||||
|
}
|
@ -2017,6 +2017,8 @@ in
|
|||||||
|
|
||||||
clasp = callPackage ../tools/misc/clasp { };
|
clasp = callPackage ../tools/misc/clasp { };
|
||||||
|
|
||||||
|
clevercsv = with python3Packages; toPythonApplication clevercsv;
|
||||||
|
|
||||||
clevis = callPackage ../tools/security/clevis {
|
clevis = callPackage ../tools/security/clevis {
|
||||||
asciidoc = asciidoc-full;
|
asciidoc = asciidoc-full;
|
||||||
};
|
};
|
||||||
@ -7504,6 +7506,8 @@ in
|
|||||||
|
|
||||||
tab = callPackage ../tools/text/tab { };
|
tab = callPackage ../tools/text/tab { };
|
||||||
|
|
||||||
|
tabview = with python3Packages; toPythonApplication tabview;
|
||||||
|
|
||||||
tautulli = python3Packages.callPackage ../servers/tautulli { };
|
tautulli = python3Packages.callPackage ../servers/tautulli { };
|
||||||
|
|
||||||
pleroma-otp = callPackage ../servers/pleroma-otp { };
|
pleroma-otp = callPackage ../servers/pleroma-otp { };
|
||||||
@ -28574,6 +28578,8 @@ in
|
|||||||
|
|
||||||
dcm2niix = callPackage ../applications/science/biology/dcm2niix { };
|
dcm2niix = callPackage ../applications/science/biology/dcm2niix { };
|
||||||
|
|
||||||
|
deepdiff = with python3Packages; toPythonApplication deepdiff;
|
||||||
|
|
||||||
deepsea = callPackage ../tools/security/deepsea { };
|
deepsea = callPackage ../tools/security/deepsea { };
|
||||||
|
|
||||||
deeptools = callPackage ../applications/science/biology/deeptools { python = python3; };
|
deeptools = callPackage ../applications/science/biology/deeptools { python = python3; };
|
||||||
|
@ -1343,6 +1343,8 @@ in {
|
|||||||
|
|
||||||
cleo = callPackage ../development/python-modules/cleo { };
|
cleo = callPackage ../development/python-modules/cleo { };
|
||||||
|
|
||||||
|
clevercsv = callPackage ../development/python-modules/clevercsv { };
|
||||||
|
|
||||||
clf = callPackage ../development/python-modules/clf { };
|
clf = callPackage ../development/python-modules/clf { };
|
||||||
|
|
||||||
click = callPackage ../development/python-modules/click { };
|
click = callPackage ../development/python-modules/click { };
|
||||||
@ -7689,6 +7691,8 @@ in {
|
|||||||
|
|
||||||
tabulate = callPackage ../development/python-modules/tabulate { };
|
tabulate = callPackage ../development/python-modules/tabulate { };
|
||||||
|
|
||||||
|
tabview = callPackage ../development/python-modules/tabview { };
|
||||||
|
|
||||||
tadasets = callPackage ../development/python-modules/tadasets { };
|
tadasets = callPackage ../development/python-modules/tadasets { };
|
||||||
|
|
||||||
tag-expressions = callPackage ../development/python-modules/tag-expressions { };
|
tag-expressions = callPackage ../development/python-modules/tag-expressions { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user