forked from mirrors/nixpkgs
41 lines
731 B
Nix
41 lines
731 B
Nix
|
{ lib
|
||
|
, buildPythonPackage
|
||
|
, fetchFromGitHub
|
||
|
, packaging
|
||
|
, pytestCheckHook
|
||
|
, pythonOlder
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "fastcore";
|
||
|
version = "1.3.27";
|
||
|
format = "setuptools";
|
||
|
|
||
|
disabled = pythonOlder "3.8";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "fastai";
|
||
|
repo = pname;
|
||
|
rev = version;
|
||
|
sha256 = "sha256-ogCNDh18FHP9KY0q0BIbsjPH5vGGioGh4FFUUb3c3Jc=";
|
||
|
};
|
||
|
|
||
|
propagatedBuildInputs = [
|
||
|
packaging
|
||
|
];
|
||
|
|
||
|
# Module has no tests
|
||
|
doCheck = false;
|
||
|
|
||
|
pythonImportsCheck = [
|
||
|
"fastcore"
|
||
|
];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Python module for Fast AI";
|
||
|
homepage = "https://github.com/fastai/fastcore";
|
||
|
license = with licenses; [ asl20 ];
|
||
|
maintainers = with maintainers; [ fab ];
|
||
|
};
|
||
|
}
|