nixpkgs/pkgs/development/python-modules/fastcore/default.nix
2022-04-12 05:34:57 +00:00

41 lines
745 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, packaging
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "fastcore";
version = "1.4.2";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "fastai";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-0q+qFrfMsXkwgu08igt2kHZ9c3/aqz/inCpJXkPZsdg=";
};
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 ];
};
}