1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7 fetchpatch,
8}:
9
10buildPythonPackage rec {
11 pname = "sigparse";
12 version = "3.0.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "Lunarmagpie";
17 repo = "sigparse";
18 tag = "v${version}";
19 hash = "sha256-VzWDqplYgwrJXXd5IUzEIp0YRuofybqmGrNKPaGqQFM=";
20 };
21
22 patches = [
23 # pyproject.toml version file is set as 1.0.0
24 (fetchpatch {
25 url = "https://github.com/Lunarmagpie/sigparse/pull/14/commits/44780382410bc6913bdd8ff7e92948078adb736c.patch";
26 hash = "sha256-3EOkdBQDBodMBp4ENdvquJlRvAAywQhdWAX4dWFmhL0=";
27 })
28 ];
29
30 build-system = [ poetry-core ];
31 pythonImportsCheck = [ "sigparse" ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 meta = {
36 description = "Backports python 3.10 typing features into 3.7, 3.8, and 3.9";
37 license = lib.licenses.mit;
38 homepage = "https://github.com/Lunarmagpie/sigparse";
39 maintainers = with lib.maintainers; [ sigmanificient ];
40 };
41}