3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/csvw/default.nix

52 lines
849 B
Nix
Raw Normal View History

2020-06-08 02:33:42 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
2021-05-09 01:59:09 +01:00
, pythonOlder
2020-06-08 02:33:42 +01:00
, attrs
, isodate
, dateutil
, rfc3986
, uritemplate
, mock
, pytestCheckHook
, pytest-mock
}:
buildPythonPackage rec {
pname = "csvw";
2021-05-09 01:59:09 +01:00
version = "1.11.0";
disabled = pythonOlder "3.6";
2020-06-08 02:33:42 +01:00
src = fetchFromGitHub {
owner = "cldf";
repo = "csvw";
rev = "v${version}";
2021-05-09 01:59:09 +01:00
sha256 = "1393xwqawaxsflbq62vks92vv4zch8p6dd1mdvdi7j4vvf0zljkg";
2020-06-08 02:33:42 +01:00
};
patchPhase = ''
substituteInPlace setup.cfg --replace "--cov" ""
'';
propagatedBuildInputs = [
attrs
isodate
dateutil
rfc3986
uritemplate
];
checkInputs = [
mock
pytestCheckHook
pytest-mock
];
meta = with lib; {
description = "CSV on the Web";
homepage = "https://github.com/cldf/csvw";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}