1{ lib
2, fetchPypi
3, buildPythonPackage
4, setuptools-scm
5, click
6, requests
7, attrs
8, intbitset
9, saneyaml
10, text-unidecode
11, beautifulsoup4
12, pytestCheckHook
13, pytest-xdist
14}:
15buildPythonPackage rec {
16 pname = "commoncode";
17 version = "21.1.21";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "6e2daa34fac2d91307b23d9df5f01a6168fdffb12bf5d161bd6776bade29b479";
22 };
23
24 dontConfigure = true;
25
26 nativeBuildInputs = [
27 setuptools-scm
28 ];
29
30 propagatedBuildInputs = [
31 click
32 requests
33 attrs
34 intbitset
35 saneyaml
36 text-unidecode
37 beautifulsoup4
38 ];
39
40 checkInputs = [
41 pytestCheckHook
42 pytest-xdist
43 ];
44
45 pythonImportsCheck = [
46 "commoncode"
47 ];
48
49 meta = with lib; {
50 description = "A set of common utilities, originally split from ScanCode";
51 homepage = "https://github.com/nexB/commoncode";
52 license = licenses.asl20;
53 maintainers = teams.determinatesystems.members;
54 };
55}