nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 beautifulsoup4,
5 buildPythonPackage,
6 cryptography,
7 fetchFromGitHub,
8 lxml,
9 pyjwt,
10 setuptools-scm,
11 xmltodict,
12}:
13
14buildPythonPackage rec {
15 pname = "seatconnect";
16 version = "1.1.9";
17 format = "setuptools";
18
19 src = fetchFromGitHub {
20 owner = "farfar";
21 repo = "seatconnect";
22 tag = version;
23 hash = "sha256-HITVrI0o94a61gy/TYSGFtLBYX4Rw/dK1o2/KsvHLTQ=";
24 };
25
26 nativeBuildInputs = [ setuptools-scm ];
27
28 propagatedBuildInputs = [
29 aiohttp
30 beautifulsoup4
31 cryptography
32 lxml
33 pyjwt
34 xmltodict
35 ];
36
37 # Project only has a dummy test
38 doCheck = false;
39
40 pythonImportsCheck = [ "seatconnect" ];
41
42 meta = {
43 description = "Python module to communicate with Seat Connect";
44 homepage = "https://github.com/farfar/seatconnect";
45 changelog = "https://github.com/Farfar/seatconnect/releases/tag/${version}";
46 license = with lib.licenses; [ asl20 ];
47 maintainers = with lib.maintainers; [ fab ];
48 };
49}