mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
python3Packages.fasttext: reuse pname, version, and src from fasttext
This commit is contained in:
parent
3ba5bc7130
commit
90136f0b77
@ -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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user