python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / audio / beets / plugins / copyartifacts.nix
blob623ca2fcf172578ce56107793fc3e1b8c9024988
1 { lib, fetchFromGitHub, beets, python3Packages }:
3 python3Packages.buildPythonApplication {
4   pname = "beets-copyartifacts";
5   version = "unstable-2020-02-15";
7   src = fetchFromGitHub {
8     repo = "beets-copyartifacts";
9     owner = "adammillerio";
10     rev = "85eefaebf893cb673fa98bfde48406ec99fd1e4b";
11     sha256 = "sha256-bkT2BZZ2gdcacgvyrVe2vMrOMV8iMAm8Q5xyrZzyqU0=";
12   };
14   postPatch = ''
15     sed -i -e '/install_requires/,/\]/{/beets/d}' setup.py
16     sed -i -e '/namespace_packages/d' setup.py
17     printf 'from pkgutil import extend_path\n__path__ = extend_path(__path__, __name__)\n' >beetsplug/__init__.py
18   '';
20   pytestFlagsArray = [ "-r fEs" ];
22   checkInputs = with python3Packages; [
23     pytestCheckHook
24     beets
25     six
26   ];
28   meta = {
29     description = "Beets plugin to move non-music files during the import process";
30     homepage = "https://github.com/sbarakat/beets-copyartifacts";
31     license = lib.licenses.mit;
32     inherit (beets.meta) platforms;
33   };