at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 jinja2, 7 lxml, 8 pytestCheckHook, 9 python, 10 xmlschema, 11}: 12 13buildPythonPackage rec { 14 pname = "reqif"; 15 version = "0.0.47"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "strictdoc-project"; 20 repo = "reqif"; 21 tag = version; 22 hash = "sha256-z7krly5X5OlrmAlm4bZZ3eP8lvx3HUY3Z8K/6AiBOfQ="; 23 }; 24 25 postPatch = '' 26 substituteInPlace ./tests/unit/conftest.py \ 27 --replace-fail "os.path.abspath(os.path.join(__file__, \"../../../../reqif\"))" \ 28 "\"${placeholder "out"}/${python.sitePackages}/reqif\"" 29 ''; 30 31 build-system = [ 32 hatchling 33 ]; 34 35 dependencies = with python.pkgs; [ 36 lxml 37 jinja2 38 xmlschema 39 openpyxl 40 ]; 41 42 nativeCheckInputs = [ pytestCheckHook ]; 43 44 pythonImportsCheck = [ "reqif" ]; 45 46 meta = with lib; { 47 description = "Python library for ReqIF format"; 48 mainProgram = "reqif"; 49 homepage = "https://github.com/strictdoc-project/reqif"; 50 changelog = "https://github.com/strictdoc-project/reqif/releases/tag/${src.tag}"; 51 license = licenses.asl20; 52 maintainers = with maintainers; [ ]; 53 }; 54}