mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
49 lines
848 B
Nix
49 lines
848 B
Nix
|
{ lib
|
||
|
, buildPythonPackage
|
||
|
, fetchFromGitHub
|
||
|
, httpx
|
||
|
, pydantic
|
||
|
, pytestCheckHook
|
||
|
, pythonOlder
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "pycfmodel";
|
||
|
version = "0.13.0";
|
||
|
format = "setuptools";
|
||
|
|
||
|
disabled = pythonOlder "3.7";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "Skyscanner";
|
||
|
repo = pname;
|
||
|
rev = version;
|
||
|
hash = "sha256-BlnLf0C/wxPXhoAH0SRB22eGWbbZ05L20rNy6qfOI+A=";
|
||
|
};
|
||
|
|
||
|
propagatedBuildInputs = [
|
||
|
pydantic
|
||
|
];
|
||
|
|
||
|
checkInputs = [
|
||
|
httpx
|
||
|
pytestCheckHook
|
||
|
];
|
||
|
|
||
|
disabledTests = [
|
||
|
# Test require network access
|
||
|
"test_cloudformation_actions"
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [
|
||
|
"pycfmodel"
|
||
|
];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Model for Cloud Formation scripts";
|
||
|
homepage = "https://github.com/Skyscanner/pycfmodel";
|
||
|
license = licenses.asl20;
|
||
|
maintainers = with maintainers; [ fab ];
|
||
|
};
|
||
|
}
|