1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

python.pkgs.acoustics: move to separate expression

This commit is contained in:
wisut hantanong 2017-07-14 18:59:48 +07:00 committed by Jörg Thalheim
parent bcb73a13e3
commit 2d546a98e2
2 changed files with 27 additions and 23 deletions

View file

@ -0,0 +1,26 @@
{ stdenv, buildPythonPackage, fetchPypi
, cython, pytest, numpy, scipy, matplotlib, pandas, tabulate }:
buildPythonPackage rec {
pname = "acoustics";
version = "0.1.2";
name = "${pname}-${version}";
buildInputs = [ cython pytest ];
propagatedBuildInputs = [ numpy scipy matplotlib pandas tabulate ];
src = fetchPypi {
inherit pname version;
sha256 = "b75a47de700d01e704de95953a6e969922b2f510d7eefe59f7f8980ad44ad1b7";
};
# Tests not distributed
doCheck = false;
meta = with stdenv.lib; {
description = "A package for acousticians";
maintainer = with maintainers; [ fridh ];
license = with licenses; [ bsd3 ];
homepage = https://github.com/python-acoustics/python-acoustics;
};
}

View file

@ -84,29 +84,7 @@ in {
vowpalwabbit = callPackage ../development/python-modules/vowpalwabbit { pythonPackages = self; };
acoustics = buildPythonPackage rec {
pname = "acoustics";
version = "0.1.2";
name = pname + "-" + version;
buildInputs = with self; [ cython pytest ];
propagatedBuildInputs = with self; [ numpy scipy matplotlib pandas tabulate ];
src = pkgs.fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
sha256 = "b75a47de700d01e704de95953a6e969922b2f510d7eefe59f7f8980ad44ad1b7";
};
# Tests not distributed
doCheck = false;
meta = {
description = "A package for acousticians";
maintainer = with maintainers; [ fridh ];
license = with licenses; [ bsd3 ];
homepage = https://github.com/python-acoustics/python-acoustics;
};
};
acoustics = callPackage ../development/python-modules/acoustics { };
"3to2" = callPackage ../development/python-modules/3to2 { };