pythonPackages.semantic: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-27 09:54:35 -04:00
parent 85e217500e
commit 77df3ef7a7
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 31 additions and 21 deletions

View File

@ -0,0 +1,30 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, quantities
, numpy
}:
buildPythonPackage rec {
pname = "semantic";
version = "1.0.3";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "bbc47dad03dddb1ba5895612fdfa1e43cfb3c497534976cebacd4f3684b505b4";
};
propagatedBuildInputs = [ quantities numpy ];
# strange setuptools error (can not import semantic.test)
doCheck = false;
meta = with stdenv.lib; {
description = "Common Natural Language Processing Tasks for Python";
homepage = https://github.com/crm416/semantic;
license = licenses.mit;
};
}

View File

@ -3819,27 +3819,7 @@ in {
secretstorage = callPackage ../development/python-modules/secretstorage { };
semantic = buildPythonPackage rec {
name = "semantic-1.0.3";
disabled = isPy3k;
propagatedBuildInputs = with self; [ quantities numpy ];
src = pkgs.fetchurl {
url = "mirror://pypi/s/semantic/semantic-1.0.3.tar.gz";
sha256 = "bbc47dad03dddb1ba5895612fdfa1e43cfb3c497534976cebacd4f3684b505b4";
};
# strange setuptools error (can not import semantic.test)
doCheck = false;
meta = with pkgs.stdenv.lib; {
description = "Common Natural Language Processing Tasks for Python";
homepage = https://github.com/crm416/semantic;
license = licenses.mit;
};
};
semantic = callPackage ../development/python-modules/semantic { };
sandboxlib = buildPythonPackage rec {
name = "sandboxlib-${version}";