1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonAtLeast,
6 requests,
7 setuptools,
8 standard-telnetlib,
9}:
10
11buildPythonPackage rec {
12 pname = "pyfnip";
13 version = "0.2";
14 pyproject = true;
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-arwIsqsj+d6sMatBJc1eEr95Nvg8Y9lfpOtBPcHKomA=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [
24 requests
25 ] ++ lib.optionals (pythonAtLeast "3.13") [ standard-telnetlib ];
26
27 # Project has no tests
28 doCheck = false;
29
30 pythonImportsCheck = [ "pyfnip" ];
31
32 meta = with lib; {
33 description = "Python client to get fido account data";
34 homepage = "https://github.com/juhaniemi/pyfnip";
35 license = licenses.mit;
36 maintainers = with maintainers; [ fab ];
37 };
38}