git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.audioread: move expression
commita25e324e063ca3e8b3036964af16259453734823 authorFrederik Rietdijk <fridh@fridh.nl> dateSat 12 Aug 2017, 09:04 (9 years ago) parentabdb58e
2 files changed+25−18
pkgs/development/python-modules/audioread/default.nix+24 pkgs/top-level/python-packages.nix+1−18
pkgs/development/python-modules/audioread/default.nixnew file+24
@@ -0,0 +1,24 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+}:
5+
6+buildPythonPackage rec {
7+ pname = "audioread";
8+ name = "${pname}-${version}";
9+ version = "2.1.1";
10+
11+ src = fetchPypi {
12+ inherit pname version;
13+ sha256 = "ffb601de7a9e40850d4ec3256a3a6bbe8fa40466dafb5c65f41b08e4bb963f1e";
14+ };
15+
16+ # No tests, need to disable or py3k breaks
17+ doCheck = false;
18+
19+ meta = {
20+ description = "Cross-platform audio decoding";
21+ homepage = "https://github.com/sampsyo/audioread";
22+ license = lib.licenses.mit;
23+ };
24+}
pkgs/top-level/python-packages.nix+1−18
@@ -709,24 +709,7 @@ in {
709709 };
710710 });
711711
712− audioread = buildPythonPackage rec {
713− name = "audioread-${version}";
714− version = "2.1.1";
715−
716− src = pkgs.fetchurl {
717− url = "mirror://pypi/a/audioread/${name}.tar.gz";
718− sha256 = "ffb601de7a9e40850d4ec3256a3a6bbe8fa40466dafb5c65f41b08e4bb963f1e";
719− };
720−
721− # No tests, need to disable or py3k breaks
722− doCheck = false;
723−
724− meta = {
725− description = "Cross-platform audio decoding";
726− homepage = "https://github.com/sampsyo/audioread";
727− license = licenses.mit;
728− };
729− };
712+ audioread = callPackage ../development/python-modules/audioread { };
730713
731714 audiotools = buildPythonPackage rec {
732715 name = "audiotools-${version}";