python3Packages.fasttext: reuse pname, version, and src from fasttext

This commit is contained in:
Daniël de Kok 2020-04-28 12:16:20 +02:00
parent 3ba5bc7130
commit 90136f0b77

View File

@ -1,15 +1,7 @@
{stdenv, buildPythonPackage, fetchFromGitHub, numpy, pybind11}:
{stdenv, buildPythonPackage, fetchFromGitHub, numpy, pkgs, pybind11 }:
buildPythonPackage rec {
pname = "fasttext";
version = "0.9.1";
src = fetchFromGitHub {
owner = "facebookresearch";
repo = "fastText";
rev = "v${version}";
sha256 = "1cbzz98qn8aypp4r5kwwwc9wiq5bwzv51kcsb15xjfs9lz8h3rii";
};
inherit (pkgs.fasttext) pname version src;
buildInputs = [ pybind11 ];