git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.pyxbe: unstable-2021-01-10
commitb2ca9d14afc1c78ad965b4b8868aff20fae56bdd authorFabian Affolter <mail@fabian-affolter.ch> dateMon 19 Apr 2021, 00:16 (6 years ago) parent5ba1edf
2 files changed+38
pkgs/development/python-modules/pyxbe/default.nix+36 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/pyxbe/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pytestCheckHook
5+}:
6+
7+buildPythonPackage rec {
8+ pname = "pyxbe";
9+ version = "unstable-2021-01-10";
10+
11+ src = fetchFromGitHub {
12+ owner = "mborgerson";
13+ repo = pname;
14+ rev = "a7ae1bb21b02a57783831eb080c1edbafaad1d5d";
15+ sha256 = "1cp9a5f41z8j7bzip6nhka8qnxs12v75cdf80sk2nzgf1k15wi2p";
16+ };
17+
18+ checkInputs = [
19+ pytestCheckHook
20+ ];
21+
22+ # Update location for run with pytest
23+ preCheck = ''
24+ substituteInPlace tests/test_load.py \
25+ --replace "'xbefiles'" "'tests/xbefiles'"
26+ '';
27+
28+ pythonImportsCheck = [ "xbe" ];
29+
30+ meta = with lib; {
31+ description = "Library to work with XBE files";
32+ homepage = "https://github.com/mborgerson/pyxbe";
33+ license = with licenses; [ mit ];
34+ maintainers = with maintainers; [ fab ];
35+ };
36+}
pkgs/top-level/python-packages.nix+2
@@ -7005,6 +7005,8 @@ in {
70057005
70067006 pyx = callPackage ../development/python-modules/pyx { };
70077007
7008+ pyxbe = callPackage ../development/python-modules/pyxbe { };
7009+
70087010 pyxdg = callPackage ../development/python-modules/pyxdg { };
70097011
70107012 pyxeoma = callPackage ../development/python-modules/pyxeoma { };