nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildPythonPackage, fetchPypi, isPyPy, pytestCheckHook, case, psutil, fetchpatch }:
2
3buildPythonPackage rec {
4 pname = "billiard";
5 version = "3.6.3.0";
6 disabled = isPyPy;
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "0spssl3byzqsplra166d59jx8iqfxyzvcbx7vybkmwr5ck72a5yr";
11 };
12 patches = [(fetchpatch {
13 # Add Python 3.9 support to spawnv_passfds()
14 # Should be included in next release after 3.6.3.0
15 url = "https://github.com/celery/billiard/pull/310/commits/a508ebafadcfe2e25554b029593f3e66d01ede6c.patch";
16 sha256 = "05zsr1bvjgi01qg7r274c0qvbn65iig3clyz14c08mpfyn38h84i";
17 excludes = [ "tox.ini" ];
18 })];
19
20 checkInputs = [ pytestCheckHook case psutil ];
21
22 meta = with lib; {
23 homepage = "https://github.com/celery/billiard";
24 description = "Python multiprocessing fork with improvements and bugfixes";
25 license = licenses.bsd3;
26 };
27}