at 23.11-beta 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, python 4, fetchFromGitHub 5, hatchling 6, beautifulsoup4 7, lxml 8, jinja2 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "reqif"; 15 version = "0.0.35"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "strictdoc-project"; 22 repo = pname; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-3yOLOflPqzJRv3qCQXFK3rIFftBq8FkYy7XhOfWH82Y="; 25 }; 26 27 postPatch = '' 28 substituteInPlace ./tests/unit/conftest.py --replace \ 29 "os.path.abspath(os.path.join(__file__, \"../../../../reqif\"))" \ 30 "\"${placeholder "out"}/${python.sitePackages}/reqif\"" 31 substituteInPlace requirements.txt --replace "==" ">=" 32 ''; 33 34 nativeBuildInputs = [ 35 hatchling 36 ]; 37 38 propagatedBuildInputs = [ 39 beautifulsoup4 40 lxml 41 jinja2 42 ]; 43 44 pythonImportsCheck = [ 45 "reqif" 46 ]; 47 48 nativeCheckInputs = [ 49 pytestCheckHook 50 ]; 51 52 meta = with lib; { 53 description = "Python library for ReqIF format"; 54 homepage = "https://github.com/strictdoc-project/reqif"; 55 changelog = "https://github.com/strictdoc-project/reqif/releases/tag/${version}"; 56 license = licenses.asl20; 57 maintainers = with maintainers; [ yuu ]; 58 }; 59}