pythonPackages.csvw-to-sqlite: Remove stale substituteInPlace, use pytestCheckHook

This commit is contained in:
Sandro Jäckel 2021-02-15 23:04:15 +01:00
parent 0c71d59971
commit 0f44581d63
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -8,7 +8,7 @@
, pandas
, py-lru-cache
, six
, pytest
, pytestCheckHook
}:
buildPythonPackage rec {
@ -23,11 +23,6 @@ buildPythonPackage rec {
sha256 = "0p99cg76d3s7jxvigh5ad04dzhmr6g62qzzh4i6h7x9aiyvdhvk4";
};
postPatch = ''
substituteInPlace setup.py \
--replace pandas~=0.25.0 pandas
'';
propagatedBuildInputs = [
click
dateparser
@ -37,13 +32,9 @@ buildPythonPackage rec {
];
checkInputs = [
pytest
pytestCheckHook
];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Convert CSV files into a SQLite database";
homepage = "https://github.com/simonw/csvs-to-sqlite";