mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
47 lines
874 B
Nix
47 lines
874 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cython
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "frozenlist";
|
|
version = "1.2.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aio-libs";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-rTbekdceC5QK0aiySi/4QUwaEoDfTlLrx2t6Kb9bH7U=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pytest.ini \
|
|
--replace "--cov=frozenlist" ""
|
|
'';
|
|
|
|
preBuild = ''
|
|
cython frozenlist/_frozenlist.pyx
|
|
'';
|
|
|
|
pythonImportsCheck = [ "frozenlist" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module for list-like structure";
|
|
homepage = "https://github.com/aio-libs/frozenlist";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|