1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 unstableGitUpdater,
7}:
8
9buildPythonPackage rec {
10 pname = "msrplib";
11 version = "0.20.1-unstable-2021-06-01";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "AGProjects";
16 repo = "python3-msrplib";
17 # no tag pushed for version 0.21.1 release, and commit title is wrong
18 rev = "5bd069620d436d5a65e1c369e43cc6b88857fb9e";
19 hash = "sha256-z0gF/oQW/h3qiCL1cFWBPK7JYzLCNAD7/dg7HfY4rig=";
20 };
21
22 build-system = [
23 setuptools
24 ];
25
26 # only test requires networking
27 doCheck = false;
28
29 pythonImportsCheck = [ "msrplib" ];
30
31 passthru.updateScript = unstableGitUpdater { };
32
33 meta = {
34 description = "MSRP (RFC4975) client library";
35 homepage = "https://github.com/AGProjects/python3-msrplib";
36 license = lib.licenses.lgpl21Plus;
37 teams = [
38 lib.teams.ngi
39 ];
40 };
41}