1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitea,
5 setuptools,
6 setuptools-scm,
7 hypothesis,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "pybcj";
13 version = "1.0.3";
14 pyproject = true;
15
16 src = fetchFromGitea {
17 domain = "codeberg.org";
18 owner = "miurahr";
19 repo = "pybcj";
20 tag = "v${version}";
21 hash = "sha256-ExSt7E7ZaVEa0NwAQHU0fOaXJW9jYmEUUy/1iUilGz8=";
22 };
23
24 build-system = [
25 setuptools
26 setuptools-scm
27 ];
28
29 nativeCheckInputs = [
30 hypothesis
31 pytestCheckHook
32 ];
33
34 pythonImportsCheck = [
35 "bcj"
36 ];
37
38 meta = {
39 description = "BCJ (Branch-Call-Jump) filter for Python";
40 homepage = "https://codeberg.org/miurahr/pybcj";
41 changelog = "https://codeberg.org/miurahr/pybcj/src/tag/v${version}/Changelog.rst#v${version}";
42 license = lib.licenses.gpl2Plus;
43 maintainers = with lib.maintainers; [
44 pitkling
45 PopeRigby
46 ];
47 };
48}