2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, setuptools-scm
|
|
|
|
, click
|
|
|
|
, requests
|
|
|
|
, attrs
|
|
|
|
, intbitset
|
|
|
|
, saneyaml
|
|
|
|
, text-unidecode
|
|
|
|
, beautifulsoup4
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-xdist
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "commoncode";
|
2021-09-23 15:35:13 +00:00
|
|
|
version = "21.8.31";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-23 15:35:13 +00:00
|
|
|
sha256 = "0e74c61226834393801e921ab125eae3b52361340278fb9a468c5c691d286c32";
|
2021-04-25 03:57:28 +00: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;
|
|
|
|
};
|
|
|
|
}
|