1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5}:
6
7buildPythonPackage {
8 pname = "python-unshare";
9 # pypi version doesn't support Python 3 and the package didn't update for a long time:
10 # https://github.com/TheTincho/python-unshare/pull/8
11 version = "unstable-2018-05-20";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "TheTincho";
16 repo = "python-unshare";
17 rev = "4e98c177bdeb24c5dcfcd66c457845a776bbb75c";
18 sha256 = "1h9biinhy5m7r2cj4abhvsg2hb6xjny3n2dxnj1336zpa082ys3h";
19 };
20
21 meta = with lib; {
22 description = "Python bindings for the Linux unshare() syscall";
23 homepage = "https://github.com/thetincho/python-unshare";
24 license = licenses.gpl2;
25 platforms = platforms.linux;
26 maintainers = with maintainers; [ abbradar ];
27 };
28}