Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchFromGitHub, beets, python3Packages }: 2 3python3Packages.buildPythonApplication { 4 pname = "beets-copyartifacts"; 5 version = "unstable-2020-02-15"; 6 7 src = fetchFromGitHub { 8 repo = "beets-copyartifacts"; 9 owner = "adammillerio"; 10 rev = "85eefaebf893cb673fa98bfde48406ec99fd1e4b"; 11 sha256 = "sha256-bkT2BZZ2gdcacgvyrVe2vMrOMV8iMAm8Q5xyrZzyqU0="; 12 }; 13 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 ''; 19 20 pytestFlagsArray = [ "-r fEs" ]; 21 22 nativeCheckInputs = with python3Packages; [ 23 pytestCheckHook 24 beets 25 six 26 ]; 27 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 }; 34}