Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyu2f / default.nix
blob609d8bfcebae9b3d56bde3f49b3878da3288c685
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , six
5 , mock
6 , pyfakefs
7 , pytest-forked
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "pyu2f";
13   version = "0.1.5a";
14   format = "setuptools";
16   src = fetchFromGitHub {
17     owner = "google";
18     repo = pname;
19     rev = "refs/tags/${version}";
20     sha256 = "0mx7bn1p3n0fxyxa82wg3c719hby7vqkxv57fhf7zvhlg2zfnr0v";
21   };
23   propagatedBuildInputs = [
24     six
25   ];
27   nativeCheckInputs = [
28     mock
29     pyfakefs
30     pytest-forked
31     pytestCheckHook
32   ];
34   disabledTestPaths = [
35     # API breakage with pyfakefs>=5.0
36     "pyu2f/tests/hid/linux_test.py"
37   ];
39   meta = with lib; {
40     description = "U2F host library for interacting with a U2F device over USB";
41     homepage = "https://github.com/google/pyu2f";
42     license = licenses.asl20;
43     maintainers = with maintainers; [ prusnak ];
44   };