2021-04-20 04:30:17 +01:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, setuptools-scm
|
|
|
|
, click
|
|
|
|
, requests
|
|
|
|
, attrs
|
|
|
|
, intbitset
|
|
|
|
, saneyaml
|
|
|
|
, text-unidecode
|
|
|
|
, beautifulsoup4
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-xdist
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "commoncode";
|
2021-08-26 20:32:32 +01:00
|
|
|
version = "21.7.23";
|
2021-04-20 04:30:17 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-26 20:32:32 +01:00
|
|
|
sha256 = "38511dcd7c518bf7fec4944c78e1118304f2f2582a7e6792cc5773aebe95a086";
|
2021-04-20 04:30:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
requests
|
|
|
|
attrs
|
|
|
|
intbitset
|
|
|
|
saneyaml
|
|
|
|
text-unidecode
|
|
|
|
beautifulsoup4
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-xdist
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"commoncode"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A set of common utilities, originally split from ScanCode";
|
|
|
|
homepage = "https://github.com/nexB/commoncode";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.determinatesystems.members;
|
|
|
|
};
|
|
|
|
}
|