tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.backports-asyncio-runner: init at 1.2.0
detroyejr
7 months ago
db76b39d
9551070e
+53
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
backports-asyncio-runner
default.nix
top-level
python-packages.nix
+47
pkgs/development/python-modules/backports-asyncio-runner/default.nix
reviewed
···
1
1
+
{
2
2
+
lib,
3
3
+
buildPythonPackage,
4
4
+
pytestCheckHook,
5
5
+
fetchFromGitHub,
6
6
+
hatchling,
7
7
+
hatch-fancy-pypi-readme,
8
8
+
}:
9
9
+
10
10
+
let
11
11
+
pname = "backports-asyncio-runner";
12
12
+
version = "1.2.0";
13
13
+
src = fetchFromGitHub {
14
14
+
owner = "samypr100";
15
15
+
repo = "backports.asyncio.runner";
16
16
+
tag = "v${version}";
17
17
+
hash = "sha256-F8x7MZgu0VItH7kBke7C7+ZBoM6Iyj8xOeQ2t56ff3k=";
18
18
+
};
19
19
+
in
20
20
+
buildPythonPackage {
21
21
+
inherit pname version src;
22
22
+
pyproject = true;
23
23
+
24
24
+
build-system = [
25
25
+
hatch-fancy-pypi-readme
26
26
+
hatchling
27
27
+
];
28
28
+
29
29
+
pythonImportsCheck = [ "backports.asyncio.runner" ];
30
30
+
nativeCheckInputs = [ pytestCheckHook ];
31
31
+
32
32
+
# These tests depend on the test.test_asyncio module in cpython which is
33
33
+
# removed at build time.
34
34
+
disabledTestPaths = [
35
35
+
"tests/test_tasks_py38.py"
36
36
+
"tests/test_tasks_py39.py"
37
37
+
"tests/test_tasks_py310.py"
38
38
+
];
39
39
+
40
40
+
meta = {
41
41
+
changelog = "https://github.com/samypr100/backports.asyncio.runner/releases/tag/${src.tag}";
42
42
+
description = "Backport of Python 3.11 asyncio.Runner";
43
43
+
homepage = "https://github.com/samypr100/backports.asyncio.runner";
44
44
+
license = lib.licenses.psfl;
45
45
+
maintainers = with lib.maintainers; [ detroyejr ];
46
46
+
};
47
47
+
}
+6
pkgs/top-level/python-packages.nix
reviewed
···
1659
1659
1660
1660
backoff = callPackage ../development/python-modules/backoff { };
1661
1661
1662
1662
+
backports-asyncio-runner =
1663
1663
+
if pythonAtLeast "3.11" then
1664
1664
+
null
1665
1665
+
else
1666
1666
+
callPackage ../development/python-modules/backports-asyncio-runner { };
1667
1667
+
1662
1668
backports-datetime-fromisoformat =
1663
1669
callPackage ../development/python-modules/backports-datetime-fromisoformat
1664
1670
{ };