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