Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 attrs, 4 bidict, 5 bitstruct, 6 buildPythonPackage, 7 fetchFromGitHub, 8 fetchpatch, 9 more-itertools, 10 poetry-core, 11 pprintpp, 12 pythonOlder, 13 tbm-utils, 14}: 15 16buildPythonPackage rec { 17 pname = "audio-metadata"; 18 version = "0.11.1"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchFromGitHub { 24 owner = "thebigmunch"; 25 repo = "audio-metadata"; 26 rev = "refs/tags/${version}"; 27 hash = "sha256-5ZX4HwbuB9ZmFfHuxaMCrn3R7/znuDsoyqqLql2Nizg="; 28 }; 29 30 patches = [ 31 # Switch to poetry-core, https://github.com/thebigmunch/audio-metadata/pull/41 32 (fetchpatch { 33 name = "switch-to-poetry-core.patch"; 34 url = "https://github.com/thebigmunch/audio-metadata/commit/dfe91a69ee37e9dcefb692165eb0f9cd36a7e5b8.patch"; 35 hash = "sha256-ut3mqgZQu0YFbsTEA13Ch0+aSNl17ndMV0fuIu3n5tc="; 36 }) 37 ]; 38 39 pythonRelaxDeps = [ 40 "attrs" 41 "more-itertools" 42 ]; 43 44 build-system = [ poetry-core ]; 45 46 47 dependencies = [ 48 attrs 49 bidict 50 bitstruct 51 more-itertools 52 pprintpp 53 tbm-utils 54 ]; 55 56 # Tests require ward which is not ready to be used 57 doCheck = false; 58 59 pythonImportsCheck = [ "audio_metadata" ]; 60 61 meta = with lib; { 62 description = "Library for handling the metadata from audio files"; 63 homepage = "https://github.com/thebigmunch/audio-metadata"; 64 changelog = "https://github.com/thebigmunch/audio-metadata/blob/${version}/CHANGELOG.md"; 65 license = licenses.mit; 66 maintainers = with maintainers; [ jakewaksbaum ]; 67 }; 68}