Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyxbe / default.nix
blob3442d5f9848ef5d00f29c161ae022aeb6e93398a
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "pyxbe";
10   version = "1.0.3";
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-iLzGGgizUbaEG1xrNq4WDaWrGtcaLwAYgn4NGYiSDBo=";
20   };
22   nativeCheckInputs = [
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   };