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