ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pyxbe / default.nix
blob929a02ac47513583a53da4d7dacfec293573bfa8
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "pyxbe";
10   version = "1.0.1";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchFromGitHub {
16     owner = "mborgerson";
17     repo = pname;
18     rev = "refs/tags/v${version}";
19     hash = "sha256-oOY0g1F5sxGUxXAT19Ygq5q7pnxEhIAKmyYELR1PHEA=";
20   };
22   checkInputs = [
23     pytestCheckHook
24   ];
26   # Update location for run with pytest
27   preCheck = ''
28     substituteInPlace tests/test_load.py \
29       --replace "'xbefiles'" "'tests/xbefiles'"
30   '';
32   pythonImportsCheck = [
33     "xbe"
34   ];
36   meta = with lib; {
37     description = "Library to work with XBE files";
38     homepage = "https://github.com/mborgerson/pyxbe";
39     license = with licenses; [ mit ];
40     maintainers = with maintainers; [ fab ];
41   };