2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-01-16 03:30:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lxml
|
|
|
|
, networkx
|
|
|
|
, dateutil
|
|
|
|
, six
|
|
|
|
, pydotplus
|
|
|
|
, rdflib
|
2018-02-19 18:56:33 +00:00
|
|
|
, pydot
|
|
|
|
, glibcLocales
|
2018-01-16 03:30:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "prov";
|
2020-11-29 14:04:37 +00:00
|
|
|
version = "2.0.0";
|
2018-01-16 03:30:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:37 +00:00
|
|
|
sha256 = "b6438f2195ecb9f6e8279b58971e02bc51814599b5d5383366eef91d867422ee";
|
2018-01-16 03:30:03 +00:00
|
|
|
};
|
|
|
|
|
2018-02-19 18:56:33 +00:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace setup.py --replace "six==1.10.0" "six>=1.10.0"
|
|
|
|
'';
|
|
|
|
|
2018-01-16 03:30:03 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
lxml
|
|
|
|
networkx
|
|
|
|
dateutil
|
|
|
|
six
|
|
|
|
pydotplus
|
|
|
|
rdflib
|
|
|
|
];
|
2018-02-19 18:56:33 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pydot
|
|
|
|
glibcLocales
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export LC_ALL="en_US.utf-8"
|
|
|
|
'';
|
2018-01-16 09:31:18 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-01-16 09:31:18 +00:00
|
|
|
description = "A Python library for W3C Provenance Data Model (PROV)";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/trungdong/prov";
|
2018-01-16 09:31:18 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ashgillman ];
|
|
|
|
};
|
2018-01-16 03:30:03 +00:00
|
|
|
}
|